mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:47:56 +02:00
20 lines
234 B
ObjectPascal
20 lines
234 B
ObjectPascal
program tgeneric35;
|
|
|
|
{$mode delphi}
|
|
|
|
type
|
|
TSomeRecord = record
|
|
F: Integer;
|
|
end;
|
|
|
|
TSomeRecord<TData> = record
|
|
data: TData;
|
|
end;
|
|
var
|
|
R1: TSomeRecord;
|
|
R2: TSomeRecord<Integer>;
|
|
begin
|
|
R1.F := 2;
|
|
R2.data := 1;
|
|
end.
|