mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:47:56 +02:00
25 lines
284 B
ObjectPascal
25 lines
284 B
ObjectPascal
{$mode objfpc}
|
|
type
|
|
TRec = record
|
|
i : longint;
|
|
end;
|
|
|
|
generic TGeneric<T>=class(TObject)
|
|
procedure Test(v : T);
|
|
end;
|
|
|
|
procedure TGeneric.Test(v : T);
|
|
begin
|
|
with v do
|
|
begin
|
|
i:=1;
|
|
end;
|
|
end;
|
|
|
|
type
|
|
TC = specialize TGeneric<TRec>;
|
|
|
|
begin
|
|
end.
|
|
|