mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 00:48:25 +02:00
16 lines
263 B
ObjectPascal
16 lines
263 B
ObjectPascal
{ Old file: tbs0222.pp }
|
|
{ an record field can't be the counter index (compiles with TP) OK 0.99.11 (PFV) }
|
|
|
|
{$mode tp}
|
|
|
|
type TStruct = record
|
|
x,y: Integer;
|
|
end;
|
|
|
|
var i: TStruct;
|
|
|
|
begin
|
|
for i.x:=1 to 10 do
|
|
writeln(i.x);
|
|
end.
|