Hi,
TLine = class(TObjectList)
...
procedure Add(const X: Real); overload;
procedure Add(const n: Integer); overload;
...
end;
In Delphi 12 (Update 1), after the change of TList.Count to NativeInt from Integer, calling the Add procedure like this NewLine.Add(NewLine.Count - 1) calls the Real overloaded procedure in 64bit Delphi, and the Integer one in 32bit Delphi.
Am I doing something ambiguous, is it a Delphi compiler inconsistency or a bug?
Thanks!