blob: 2f393c75f8df4529d0e6bc3fc45d8ebde2ed8a6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{ 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.
|