JVM_IR: Fix line number for varible initializer
This commit is contained in:
committed by
Ilmir Usmanov
parent
8bb9c572ac
commit
3ea878b1c6
+1
-1
@@ -443,8 +443,8 @@ class ExpressionCodegen(
|
||||
|
||||
declaration.initializer?.let {
|
||||
it.accept(this, data).coerce(varType, declaration.type).materialize()
|
||||
mv.store(index, varType)
|
||||
it.markLineNumber(startOffset = true)
|
||||
mv.store(index, varType)
|
||||
}
|
||||
|
||||
data.variables.add(VariableInfo(declaration, index, varType, markNewLabel()))
|
||||
|
||||
@@ -18,9 +18,6 @@ fun getC() = false
|
||||
|
||||
fun getD() = true
|
||||
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// IR backend is missing a line number 3 in box() after stepping on line 9 for getting the result of false
|
||||
|
||||
// LINENUMBERS
|
||||
// TestKt.box():3
|
||||
// TestKt.getA():13
|
||||
|
||||
Reference in New Issue
Block a user