fix #973
This commit is contained in:
parent
f5aabc481c
commit
39042e06a9
14
TestSuite/lambdas_exceptions.pas
Normal file
14
TestSuite/lambdas_exceptions.pas
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
begin
|
||||
var i := 0;
|
||||
var p: procedure := ()->try
|
||||
raise new Exception('test');
|
||||
except
|
||||
on ex: Exception do
|
||||
begin
|
||||
i := 1;
|
||||
end;
|
||||
|
||||
end;
|
||||
p;
|
||||
assert(i = 1);
|
||||
end.
|
||||
|
|
@ -129,6 +129,11 @@ namespace TreeConverter.LambdaExpressions.Closure
|
|||
}
|
||||
}
|
||||
|
||||
public override void visit(exception_handler _exception_handler)
|
||||
{
|
||||
ProcessNode(_exception_handler.statements);
|
||||
}
|
||||
|
||||
public override void visit(ident id)
|
||||
{
|
||||
var idName = id.name.ToLower();
|
||||
|
|
|
|||
Loading…
Reference in a new issue