Add $completion entry to suspend functions' LVT

#KT-28810 Fixed
This commit is contained in:
Ilmir Usmanov
2019-02-20 17:55:11 +03:00
parent 677987c85f
commit ec7315e6da
11 changed files with 200 additions and 9 deletions
@@ -0,0 +1,16 @@
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
class A {
suspend fun foo() {}
suspend fun foo1(l: Long) {
foo()
foo()
}
}
// METHOD : A.foo1(JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
// VARIABLE : NAME=this TYPE=LA; INDEX=0
// VARIABLE : NAME=l TYPE=J INDEX=1
// VARIABLE : NAME=$completion TYPE=Lkotlin/coroutines/Continuation; INDEX=3
// VARIABLE : NAME=$continuation TYPE=Lkotlin/coroutines/Continuation; INDEX=5