[JVM] Improve debug step behavior around lambdas.

- Add tests to clarify problematic behavior
- Avoid line numbers on return instructions of lambdas without explicit returns
This commit is contained in:
Kristoffer Andersen
2020-03-31 14:05:59 +02:00
committed by max-kammerer
parent fc7d667282
commit 7ec4c9990a
7 changed files with 123 additions and 8 deletions
+23
View File
@@ -0,0 +1,23 @@
// 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