Hello,
Is it possible to implement the circular type reference within the generic type?
Following example doesn't compile with FPC 2.6.4 (Lazarus 1.2.6 Win32).
generic TGItem<T> = class
private type
TGItemSpec = specialize TGItem<T>;
private var
FValue: T;
FLeft, FRight: TGItemSpec;
public
property Value: T read FValue write FValue;
end;
project1.lpr(7,29) Error: Illegal expression
project1.lpr(7,35) Error: Specialization is only supported for generic types