[IR] Make IrTypeOperatorCall copyable

^KT-45655 fixed
This commit is contained in:
Ilya Goncharov
2021-03-23 19:11:52 +03:00
committed by TeamCityServer
parent 2a5153f0fd
commit 47f1a8a0bb
11 changed files with 71 additions and 2 deletions
@@ -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"
}