Wrong stepping for if followied by captured variable

#KT-9118 Fixed
This commit is contained in:
Natalia Ukhorskaya
2015-09-11 12:22:39 +03:00
parent dfe9bb65b0
commit 137f8b242a
4 changed files with 31 additions and 0 deletions
@@ -1662,6 +1662,7 @@ public class ExpressionCodegen extends JetVisitor<StackValue, StackValue> implem
int index = myFrameMap.enter(variableDescriptor, type);
if (isSharedVarType(type)) {
markLineNumber(statement, false);
v.anew(type);
v.dup();
v.invokespecial(type.getInternalName(), "<init>", "()V", false);