pascalabcnet/TestSuite/formatter_tests/input/foreachvar1.pas
Бондарев Иван 136a60fdf3 fix #1218
fix #1219
fix #1220
2018-09-20 21:21:16 +02:00

10 lines
207 B
ObjectPascal

type
TPair = auto class
Key: string;
Value: integer;
end;
begin
var A := Arr(new TPair('a',3),new TPair('c',1),new TPair('b',4));
foreach var p in A do
writeln(p.Key, '->', p.Value);
end.