fpc/tests/test/tgeneric18.pp
paul 790f6b0a4b compiler: use delphi syntax for type, const and var section declarations in classes instead of fpc generics syntax
rtl: fix fgl to use the new syntax
tests: fix generics tests to use the new syntax

git-svn-id: trunk@15646 -
2010-07-27 00:59:32 +00:00

25 lines
330 B
ObjectPascal

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