Why is this an issue?

Omitting the type for inline loop variable declarations has a few downsides, including:

How to fix it

Explicitly specify the loop variable's type:

procedure Example;
begin
  for var I := 1 to 100 do begin
    Continue;
  end;
end;
procedure Example;
begin
  for var I: Integer := 1 to 100 do begin
    Continue;
  end;
end;

Resources