Files
kotlin-fork/compiler/testData/codegen/bytecodeText/inline/linenumberForOneParametersArgumentCall.kt
pyos c43acba0b9 JVM: restore call site line number after inlining lambda
E.g. in `x + f()` where `f` is an inline lambda, the instructions for
`+` should have the line number of that expression (while previously
they instead had the line number of the last line of the lambda).

^KT-51738 Fixed
2022-05-02 19:28:10 +02:00

14 lines
211 B
Kotlin
Vendored

fun box() {
lookAtMe { // 1
val c = "c" // 4
} // 5 (nop)
}
inline fun lookAtMe(f: (String) -> Unit) {
val a = "a" // 2
f(a) // 3 before call, 6 after call (nop)
} // 7 (nop)
// 3 NOP