ea556ce428
We already have stepping tests for Kotlin/JVM. They are helpful for testing the correctness of the generated debugging information. They are better than line number tests in that they allow to test the _behavior_, not the generated data. The structure of the data may change even if the behavior stays the same. For that reason, stepping tests are more stable.
24 lines
525 B
Kotlin
Vendored
24 lines
525 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// WITH_STDLIB
|
|
// FILE: test.kt
|
|
suspend fun foo(block: suspend Long.() -> String): String {
|
|
return 1L.block()
|
|
}
|
|
|
|
suspend fun box() {
|
|
foo {
|
|
"OK"
|
|
}
|
|
}
|
|
|
|
// This is the actual unfortunate stepping behavior in intellij.
|
|
// There is a class exclusion filter for anything in the kotlin package.
|
|
// That means that we never step into the lambda as that is only
|
|
// called via code in the kotlin package.
|
|
|
|
// EXPECTATIONS
|
|
// test.kt:8 box
|
|
// test.kt:4 foo
|
|
// test.kt:8 box
|
|
// test.kt:11 box
|