Files
kotlin-fork/idea/jvm-debugger/jvm-debugger-test/testData/asyncStackTrace/asyncFunctions.kt
T
Ilmir Usmanov 4fb5f8603a Keep $continuation in LVT
in case of suspend functions and `this` is case of lambdas, since they
are used in async stack trace generation.
Update tests.
 #KT-40661 Open
2020-07-29 00:01:12 +02:00

28 lines
352 B
Kotlin
Vendored

package asyncFunctions
suspend fun main() {
val a = 5
val b = 7
none()
foo()
val dead1 = a
val dead2 = b
}
suspend fun foo() {
val x = "foo"
none()
bar()
val dead = x
}
suspend fun bar() {
var y = "zoo"
none()
val z = "bar"
//Breakpoint!
val a = 5
val dead = y
}
suspend fun none() {}