Generate call of throwOnFailure instead of manual check
whether coroutine is resumed with exception. #KT-28015 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user