try except without end; - breaking compilation
Issue #227
resolved
program G1;
procedure test;
begin
try
PrintLn('a1');
PrintLn('a2');
except
PrintLn('a3');
// end;
end;
begin
test();
end.
Compilation stopped without any error or message.
Ofc its not critical, but strange behaviour.
Comments (4)
-
repo owner -
repo owner - changed status to resolved
Fixed Issue
#227tighten code that tests & ignore final "end." + tests→ <<cset 65f57aeaacd5>>
-
reporter - changed status to open
edited.
Strange, after re-sync GIT repo problem gone.
Sorry for raising resolved issue :)
-
reporter - changed status to resolved
- Log in to comment
This is because in DWScript this falls under Delphi compatibility mode, the “program” statement is essentially ignored, the final begin..end block to wrap the call is unnecessary, and the “end.” is unnecessary as well, so this stresses the compatibility mode testing