Write lineNumber when inline function result is written to property

This commit is contained in:
Natalia Ukhorskaya
2015-11-24 10:23:25 +03:00
parent f40e3857fa
commit 4a2e4312ea
5 changed files with 82 additions and 2 deletions
@@ -3323,7 +3323,12 @@ public class ExpressionCodegen extends KtVisitor<StackValue, StackValue> impleme
StackValue storeTo = sharedVarType == null ? StackValue.local(index, varType) : StackValue.shared(index, varType);
storeTo.store(initializer, v);
storeTo.putReceiver(v, false);
initializer.put(initializer.type, v);
markLineNumber(variableDeclaration, false);
storeTo.storeSelector(initializer.type, v);
}
@NotNull
+1 -1
View File
@@ -3,4 +3,4 @@ fun foo() {
42
}
// 2 3 4
// 2 3 2 4