Revision 40785 breaks sizeof call for nested vars
Original Reporter info from Mantis: Julian Puhl @jpuhl
-
Reporter name:
Original Reporter info from Mantis: Julian Puhl @jpuhl
- Reporter name:
Description:
If you compile the given example you'll get the (wrong) error message:
"project1.lpr(11,39) Error: Only static methods and static variables can be referenced through an object type".
I've also gotten this error for using nested types in some cases, but could not create a small example that breaks, yet.
Steps to reproduce:
program project1;
{$mode objfpc}
type
TestObject = object
var
TestNested: Integer;
end;
begin
writeln(SizeOf(TestObject.TestNested));
end.