tb0188.pp 252 B

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