JVM_IR: Box generic Result parameter in suspend lambda
#KT-44527 Fixed
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
// WITH_RUNTIME
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
import kotlin.coroutines.*
|
||||
|
||||
fun box(): String {
|
||||
suspend {
|
||||
listOf(Result.success(true)).forEach {
|
||||
println(it.getOrNull())
|
||||
}
|
||||
}.startCoroutine(Continuation(EmptyCoroutineContext) {
|
||||
it.getOrThrow()
|
||||
})
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user