Compiler doesn't notice syntax error
The follwoing program compiles, but it should not.
Reported by Simone on the forum
program Project1;
{$mode ObjFpc}
type
TEnum=(aaa,bbb,ccc);
function Fun:TEnum;
begin
Result.:=aaa; //Notice the dot after Result !
end;
begin
end.