Fix nested return not working
This commit is contained in:
parent
47e2dadb8d
commit
e5ea4d0fde
|
@ -220,6 +220,8 @@ namespace Upsilon.Evaluator
|
||||||
innerEvaluator.EvaluateStatement(boundBlockStatement.ElseStatement.Block);
|
innerEvaluator.EvaluateStatement(boundBlockStatement.ElseStatement.Block);
|
||||||
}
|
}
|
||||||
HasReturned = innerEvaluator.HasReturned;
|
HasReturned = innerEvaluator.HasReturned;
|
||||||
|
if (HasReturned)
|
||||||
|
_returnValue = innerEvaluator._returnValue;
|
||||||
_lastValue = innerEvaluator._lastValue;
|
_lastValue = innerEvaluator._lastValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue