Debugger: A dirty fix for setting breakpoints inside finally {} in case if exception is thrown from try {} (#KT-22654)

This commit is contained in:
Yan Zhulanow
2018-03-02 20:58:49 +03:00
parent eec9c6bffa
commit 966480a155
7 changed files with 92 additions and 7 deletions
@@ -1488,6 +1488,10 @@ public class ExpressionCodegen extends KtVisitor<StackValue, StackValue> impleme
}
if (tryCatchBlockEnd != null) {
if (finallyBlockStackElement != null) {
markLineNumber(finallyBlockStackElement.expression, true);
}
v.goTo(tryCatchBlockEnd);
}