(using the -Se 10 switch)
Compiling C:\Users\martin\AppData\Local\Temp\syn\project1.lpr
project1.lpr(9,5) Error: Illegal expression
project1.lpr(9,5) Fatal: Syntax error, "EXCEPT" expected but "identifier
WRITELN" foundThe illegal expression is ok.
But why saying that "Except" was expected? Imho that is misleading, since the source can continue with anything else here
Is that something that would be worth a report in mantis, in order to improve error msgs?
program Project1;
{$mode objfpc}{$H+}
var a: Integer;
begin
try
writeln();
a
writeln();
finally
end;
end.