fpc/tests/test/ugeneric4.pp
peter a59690b147 * make generic basics working again
git-svn-id: trunk@2458 -
2006-02-06 09:21:08 +00:00

31 lines
303 B
ObjectPascal

unit ugeneric4;
interface
{$mode objfpc}
type
generic TList<_T>=class(TObject)
data : _T;
procedure Fill;
end;
var
globaldata : string;
implementation
procedure LocalFill;
begin
globaldata:='Unit';
end;
procedure TList.Fill;
begin
LocalFill;
data:=globaldata;
end;
end.