fpc/tests/tbs/tb0188.pp
2000-11-30 22:38:14 +00:00

15 lines
252 B
ObjectPascal

{ Old file: tbs0222.pp }
{ an record field can't be the counter index (compiles with TP) OK 0.99.11 (PFV) }
type TStruct = record
x,y: Integer;
end;
var i: TStruct;
begin
for i.x:=1 to 10 do
writeln(i.x);
end.