7ec4c9990a
- Add tests to clarify problematic behavior - Avoid line numbers on return instructions of lambdas without explicit returns
23 lines
309 B
Kotlin
Vendored
23 lines
309 B
Kotlin
Vendored
|
|
// FILE: test.kt
|
|
inline fun foo(stringMaker: () -> String): String {
|
|
return stringMaker()
|
|
}
|
|
|
|
fun box(): String {
|
|
foo { "OK "}
|
|
foo {
|
|
"OK"
|
|
// Comment
|
|
}
|
|
return "OK"
|
|
}
|
|
|
|
// LINENUMBERS
|
|
// test.kt:8
|
|
// test.kt:4
|
|
// test.kt:8
|
|
// test.kt:9
|
|
// test.kt:4
|
|
// test.kt:10
|
|
// test.kt:13 |