Bogus "Type size mismatch" warning in for-in loop?
Original Reporter info from Mantis: Hixie
-
Reporter name: Ian Hickson
Original Reporter info from Mantis: Hixie
- Reporter name: Ian Hickson
Description:
The following gives me a "Type size mismatch, possible loss of data / range check error" warning:
{$MODE OBJFPC}
type
TNode = class end;
procedure Test(const Arg: array of TNode);
var
Item: TNode;
begin
for Item in Arg do ; // Warning here
end;
begin end.
I can't work out why. How could anything here be out of range?
Mantis conversion info:
- Mantis ID: 25703
- Build: trunk 2014/02/09
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 27970 (#24f4adf6)