46 lines
2.0 KiB
Kotlin
Vendored
46 lines
2.0 KiB
Kotlin
Vendored
// IGNORE_BACKEND_K2_LIGHT_TREE: JVM_IR
|
|
// Reason: KT-56755
|
|
// Code generation problem with JVM backend.
|
|
// IGNORE_BACKEND: JVM
|
|
// FILE: test.kt
|
|
class A {
|
|
suspend fun foo() {}
|
|
suspend fun foo1(l: Long) {
|
|
foo()
|
|
foo()
|
|
val dead = l
|
|
}
|
|
}
|
|
|
|
suspend fun box() {
|
|
A().foo1(42)
|
|
}
|
|
|
|
// EXPECTATIONS JVM JVM_IR
|
|
// test.kt:16 box: $completion:kotlin.coroutines.Continuation=Generated_Box_MainKt$main$1
|
|
// test.kt:6 <init>:
|
|
// test.kt:16 box: $completion:kotlin.coroutines.Continuation=Generated_Box_MainKt$main$1
|
|
// test.kt:8 foo1:
|
|
// test.kt:9 foo1: $continuation:kotlin.coroutines.Continuation=A$foo1$1, $result:java.lang.Object=null, l:long=42:long
|
|
// test.kt:7 foo: $completion:kotlin.coroutines.Continuation=A$foo1$1
|
|
// test.kt:9 foo1: $continuation:kotlin.coroutines.Continuation=A$foo1$1, $result:java.lang.Object=null, l:long=42:long
|
|
// test.kt:10 foo1: $continuation:kotlin.coroutines.Continuation=A$foo1$1, $result:java.lang.Object=null, l:long=42:long
|
|
// test.kt:7 foo: $completion:kotlin.coroutines.Continuation=A$foo1$1
|
|
// test.kt:10 foo1: $continuation:kotlin.coroutines.Continuation=A$foo1$1, $result:java.lang.Object=null, l:long=42:long
|
|
// test.kt:11 foo1: $continuation:kotlin.coroutines.Continuation=A$foo1$1, $result:java.lang.Object=null, l:long=42:long
|
|
// test.kt:12 foo1: $continuation:kotlin.coroutines.Continuation=A$foo1$1, $result:java.lang.Object=null, l:long=42:long
|
|
// test.kt:16 box: $completion:kotlin.coroutines.Continuation=Generated_Box_MainKt$main$1
|
|
// test.kt:17 box: $completion:kotlin.coroutines.Continuation=Generated_Box_MainKt$main$1
|
|
|
|
// EXPECTATIONS JS_IR
|
|
// test.kt:16 box: $completion=EmptyContinuation
|
|
// test.kt:6 <init>:
|
|
// test.kt:16 box: $completion=EmptyContinuation
|
|
// test.kt:16 box: $completion=EmptyContinuation
|
|
// test.kt:9 doResume:
|
|
// test.kt:7 foo: $completion=$foo1COROUTINE$0
|
|
// test.kt:10 doResume:
|
|
// test.kt:7 foo: $completion=$foo1COROUTINE$0
|
|
// test.kt:11 doResume:
|
|
// test.kt:12 doResume: dead=kotlin.Long
|