[IR] Make IrTypeOperatorCall copyable
^KT-45655 fixed
This commit is contained in:
committed by
TeamCityServer
parent
2a5153f0fd
commit
47f1a8a0bb
@@ -0,0 +1,21 @@
|
||||
// KJS_WITH_FULL_RUNTIME
|
||||
// WITH_RUNTIME
|
||||
// WITH_COROUTINES
|
||||
|
||||
import kotlin.coroutines.intrinsics.*
|
||||
|
||||
suspend fun foo() {
|
||||
DeferredCoroutine<Unit>().await()
|
||||
}
|
||||
|
||||
class DeferredCoroutine<T> {
|
||||
suspend fun await(): T = awaitInternal() as T
|
||||
}
|
||||
|
||||
internal suspend fun awaitInternal(): Any? = suspendCoroutineUninterceptedOrReturn { uCont ->
|
||||
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user