Files
kotlin/compiler/testData/codegen/bytecodeText/coroutines/throwOnFailure.kt
Ilmir Usmanov 19d2262cf1 Generate call of throwOnFailure instead of manual check
whether coroutine is resumed with exception.
 #KT-28015 Fixed
2019-02-14 18:33:17 +03:00

13 lines
214 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// WITH_COROUTINES
// TREAT_AS_ONE_FILE
suspend fun foo() {}
suspend fun bar(): Int {
foo()
return 42
}
// 2 INVOKESTATIC kotlin/ResultKt.throwOnFailure \(Ljava/lang/Object;\)V