fpc/tests/test/tgeneric18.pp
2009-11-14 22:24:55 +00:00

24 lines
324 B
ObjectPascal

program tgeneric18;
{$mode objfpc}{$H+}
type
{ TFirstGeneric }
generic TFirstGeneric<T> = class(TObject)
end;
{ TSecondGeneric }
generic TSecondGeneric<T> = class(TObject)
type public
TFirstGenericType = specialize TFirstGeneric<T>;
end;
var
Second: specialize TSecondGeneric<string>;
begin
end.