77836f1aa9
Reveals discrepancy in LVT presence on lambda implementations on the
old and new backend.
The generated code in the constructors of Suspend Lambda objects is
identical, but the IR backend generates an LVT with the constructor
parameters.
The user has to be very insistent to see this ("for step into" +
disabling "Show only kotlin variables"), but it is an observable
difference.
19 lines
603 B
Kotlin
Vendored
19 lines
603 B
Kotlin
Vendored
|
|
// WITH_COROUTINES
|
|
// FILE: test.kt
|
|
class A
|
|
|
|
suspend fun A.foo() {}
|
|
|
|
suspend fun box() {
|
|
A().foo()
|
|
}
|
|
|
|
|
|
// LOCAL VARIABLES
|
|
// test.kt:9 box: $completion:kotlin.coroutines.Continuation=helpers.ResultContinuation
|
|
// test.kt:4 <init>:
|
|
// test.kt:9 box: $completion:kotlin.coroutines.Continuation=helpers.ResultContinuation
|
|
// test.kt:6 foo: $this$foo:A=A, $completion:kotlin.coroutines.Continuation=helpers.ResultContinuation
|
|
// test.kt:9 box: $completion:kotlin.coroutines.Continuation=helpers.ResultContinuation
|
|
// test.kt:10 box: $completion:kotlin.coroutines.Continuation=helpers.ResultContinuation |