c43acba0b9
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
26 lines
373 B
Kotlin
Vendored
26 lines
373 B
Kotlin
Vendored
// FILE: test.kt
|
|
|
|
inline fun foo(stringMaker: () -> String): String {
|
|
return stringMaker()
|
|
}
|
|
|
|
fun box(): String {
|
|
foo { "OK "}
|
|
foo {
|
|
"OK"
|
|
// Comment
|
|
}
|
|
return "OK"
|
|
}
|
|
|
|
// EXPECTATIONS
|
|
// test.kt:8 box
|
|
// test.kt:4 box
|
|
// test.kt:8 box
|
|
// test.kt:4 box
|
|
// test.kt:9 box
|
|
// test.kt:4 box
|
|
// test.kt:10 box
|
|
// test.kt:4 box
|
|
// test.kt:13 box
|