In recent versions of Delphi an inline variable can be used when enumerating a container.
for var Item in AList do
begin
WriteLn(Item);
end;
This pattern currently breaks the syntax tree. Please add capturing as foreach.
This pattern seems to already work with an inline variable:
for var AValue := 0 to 12 do
Inc(i);
In recent versions of Delphi an inline variable can be used when enumerating a container.
This pattern currently breaks the syntax tree. Please add capturing as foreach.
This pattern seems to already work with an inline variable: