diff --git a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt index 67a7fa2ac1e..3b1e8a45766 100644 --- a/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt +++ b/compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt @@ -19,7 +19,9 @@ import kotlin.coroutines.* import test.* fun builder(c: suspend () -> Unit) { - c.startCoroutine(Continuation(EmptyCoroutineContext) {}) + c.startCoroutine(Continuation(EmptyCoroutineContext) { + it.getOrThrow() + }) } fun box(): String { diff --git a/compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/lambdaParameterUsed.kt b/compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/lambdaParameterUsed.kt index a29fdaff363..83929b5689c 100644 --- a/compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/lambdaParameterUsed.kt +++ b/compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/lambdaParameterUsed.kt @@ -6,7 +6,9 @@ import kotlin.coroutines.* fun box(): String = a { (::write)() } fun builder(c: suspend () -> Unit) { - c.startCoroutine(Continuation(EmptyCoroutineContext) {}) + c.startCoroutine(Continuation(EmptyCoroutineContext) { + it.getOrThrow() + }) } fun a(a: suspend Writer.() -> String): String { diff --git a/compiler/testData/codegen/box/coroutines/featureIntersection/defaultExpect.kt b/compiler/testData/codegen/box/coroutines/featureIntersection/defaultExpect.kt index ed82d02b1ba..a106146f30c 100644 --- a/compiler/testData/codegen/box/coroutines/featureIntersection/defaultExpect.kt +++ b/compiler/testData/codegen/box/coroutines/featureIntersection/defaultExpect.kt @@ -14,7 +14,9 @@ actual suspend fun withLimit(limit: Long) { } fun builder(c: suspend () -> Unit) { - c.startCoroutine(Continuation(EmptyCoroutineContext) {}) + c.startCoroutine(Continuation(EmptyCoroutineContext) { + it.getOrThrow() + }) } fun box(): String { diff --git a/compiler/testData/codegen/box/coroutines/nonLocalReturn.kt b/compiler/testData/codegen/box/coroutines/nonLocalReturn.kt index 703da057b33..3f7b5354a5b 100644 --- a/compiler/testData/codegen/box/coroutines/nonLocalReturn.kt +++ b/compiler/testData/codegen/box/coroutines/nonLocalReturn.kt @@ -18,7 +18,9 @@ suspend fun whatever() = coroutineScope { } fun builder(c: suspend () -> Unit) { - c.startCoroutine(Continuation(EmptyCoroutineContext) {}) + c.startCoroutine(Continuation(EmptyCoroutineContext) { + it.getOrThrow() + }) } fun box(): String { diff --git a/compiler/testData/codegen/box/coroutines/varSpilling/safeCallElvis.kt b/compiler/testData/codegen/box/coroutines/varSpilling/safeCallElvis.kt index b051207068b..ef788673781 100644 --- a/compiler/testData/codegen/box/coroutines/varSpilling/safeCallElvis.kt +++ b/compiler/testData/codegen/box/coroutines/varSpilling/safeCallElvis.kt @@ -17,7 +17,9 @@ class C { } fun df(t: T, r: suspend (T) -> Unit) { - r.startCoroutine(t, Continuation(EmptyCoroutineContext) {}) + r.startCoroutine(t, Continuation(EmptyCoroutineContext) { + it.getOrThrow() + }) } fun foo(s: String, c: C?) { diff --git a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspend.kt b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspend.kt index 883bb3b447b..31ded160631 100644 --- a/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspend.kt +++ b/compiler/testData/codegen/box/inlineClasses/jvm8DefaultInterfaceMethods/jvmDefaultSuspend.kt @@ -16,7 +16,9 @@ suspend fun returnsUnboxed() = InlineClass("") suspend fun test(): String = returnsUnboxed().ok() fun builder(c: suspend () -> Unit) { - c.startCoroutine(Continuation(EmptyCoroutineContext) {}) + c.startCoroutine(Continuation(EmptyCoroutineContext) { + it.getOrThrow() + }) } fun box(): String { diff --git a/compiler/testData/codegen/box/valueClasses/jvmInline.kt b/compiler/testData/codegen/box/valueClasses/jvmInline.kt index e5dda1f3c98..ac977d09b8a 100644 --- a/compiler/testData/codegen/box/valueClasses/jvmInline.kt +++ b/compiler/testData/codegen/box/valueClasses/jvmInline.kt @@ -994,7 +994,9 @@ suspend fun test() { } fun builder(c: suspend () -> Unit) { - c.startCoroutine(Continuation(EmptyCoroutineContext) {}) + c.startCoroutine(Continuation(EmptyCoroutineContext) { + it.getOrThrow() + }) } fun box(): String { diff --git a/compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt b/compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt index 7571a9f0d9b..572681604b2 100644 --- a/compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt +++ b/compiler/testData/codegen/boxInline/suspend/debugMetadataCrossinline.kt @@ -9,7 +9,9 @@ import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* fun runBlocking(c: suspend () -> Unit) { - c.startCoroutine(Continuation(EmptyCoroutineContext){}) + c.startCoroutine(Continuation(EmptyCoroutineContext){ + it.getOrThrow() + }) } inline fun foo(noinline block: (String) -> Unit) = runBlocking {