mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:28:14 +02:00
21 lines
218 B
ObjectPascal
21 lines
218 B
ObjectPascal
unit ugeneric3;
|
|
|
|
interface
|
|
|
|
{$mode objfpc}
|
|
|
|
type
|
|
generic TList<_T>=class(TObject)
|
|
data : _T;
|
|
procedure Add(item: _T);
|
|
end;
|
|
|
|
implementation
|
|
|
|
procedure TList.Add(item: _T);
|
|
begin
|
|
data:=item;
|
|
end;
|
|
|
|
end.
|