Files
kotlin/compiler/testData/checkLocalVariablesTable/suspendFunctionDeadVariables.kt
Ilmir Usmanov e17b7f01b6 Do not remove dead variables' LVT records
Also, extend liveness of alive variable to nearest suspension points
 #KT-44714
2021-03-08 23:56:36 +01:00

14 lines
365 B
Kotlin
Vendored

// WITH_RUNTIME
suspend fun dummy() {}
suspend fun test() {
dummy()
val a = 0
}
// METHOD : SuspendFunctionDeadVariablesKt.test(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
// VARIABLE : NAME=a TYPE=I INDEX=1
// VARIABLE : NAME=$continuation TYPE=Lkotlin/coroutines/Continuation; INDEX=3
// VARIABLE : NAME=$result TYPE=Ljava/lang/Object; INDEX=2