Files
kotlin-fork/compiler/testData/debug/stepping/inlineNamedCallableReference.kt
T
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

22 lines
273 B
Kotlin
Vendored

// FILE: test.kt
fun box() {
var x = false
f(::g)
}
inline fun f(block: () -> Unit) {
block()
}
fun g() {}
// EXPECTATIONS
// test.kt:3 box
// test.kt:4 box
// test.kt:8 box
// test.kt:4 box
// test.kt:11 g
// test.kt:8 box
// test.kt:9 box
// test.kt:5 box