Dear All,
I recently come across a problem which I guess is a bug, but before filing a bug report I would like to understand better what is going on.
I tried to compile under MacOS 10.13.4 with Lazarus 1.8.4 a rather large code which is compiling without problems in the same MacOS with Lazarus 1.6.4.
The error which compiler raise is:
Error: Incompatible types: got "TYPES.TSmallPoint" expected "CLASSES.TSmallPoint"
The same code compile without issues under Windows with Lazarus 1.8.4.
Tracing the error, it seems that there is something wrong with some type declarations in LMessages.
I then created a very simple unit, which has only the offensive declaration:
uses
LMessages;
procedure Dummy(Msg : TLMMouse);
var
DummyPos : TSmallPoint;
begin
DummyPos:=Msg.Pos;
end;
And I find the same behavior:
MacOS + Lazarus 1.6.4 OK
MacOS + Lazarus 1.8.4 ERROR
Error: Incompatible types: got "TYPES.TSmallPoint" expected "CLASSES.TSmallPoint"
Someone has an idea? If this is a bug, in which project of the bug tracking should I report it?
Ciao,
Daniele