Missing equal sign leads to unexpected behavior (whats the use of it ?)

Hi
When i try to instanciate a new Object and have accidentally missed the equal sign
then the Object isn’t instanciated without compiler error (only a warning).
The question for me is what does this statement mean ? Is it treated as a label ?

method Test
var o:Object;
begin
o : new Object; // ← missed equal sign
end;

Trying to instanciate it this way

method Test
begin
var o : new Object; // ← missed equal sign
end;

leads to an error (as expected)

Thanks

1 Like

That sounds like a bug this should emit a compile error, of course. Will log.

1 Like

Logged as bugs://E27245.