Write lineNumber when inline function result is written to property
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -3,4 +3,4 @@ fun foo() {
|
||||
42
|
||||
}
|
||||
|
||||
// 2 3 4
|
||||
// 2 3 2 4
|
||||
|
||||
Reference in New Issue
Block a user