fpc/tests/test/ugeneric59b.pp

23 lines
224 B
ObjectPascal

unit ugeneric59b;
{$ifdef fpc}
{$mode delphi}
{$endif}
interface
type
TTest<T> = class
class function Test: Integer;
end;
implementation
class function TTest<T>.Test: Integer;
begin
Result := 2;
end;
end.