をどのように機能するかを理解することはできませんコードはそれである:はここにジェネリック医薬品は、私がLinked_List(.ads)と呼ばれるパッケージを持っている
Generic
type T is private;
package Linked_List is
type List is tagged record
Data : T;
end record;
end Linked_List;
、ここでは主な機能(メインを含むパッケージ内のコードです。 ADB)
with Ada.Text_IO; use Ada.Text_IO;
with Linked_List;
procedure Main is
type ListOfIntegers is new Linked_List(T => Integer);
begin
null;
end Main;
私はこのエラーを取得しています:
4:30 subtype mark required in this context
found "Linked_List" declared at linked_list.ads:3
found "Linked_List" declared at linked_list.ads:3
4:41 incorrect constrain for this kind of type
すべてのヘルプは高く評価されます。