JVM: Remove inplace arguments before state-machine building
#KT-56258 Fixed
This commit is contained in:
committed by
Space Team
parent
3e99807436
commit
6be734c27e
@@ -0,0 +1,23 @@
|
||||
// WITH_STDLIB
|
||||
// FULL_JDK
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND: ANDROID
|
||||
|
||||
import kotlin.coroutines.*
|
||||
|
||||
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
||||
@kotlin.internal.InlineOnly
|
||||
inline fun f(a: Int): Int = a
|
||||
|
||||
fun box(): String {
|
||||
var res = "FAIL"
|
||||
suspend {
|
||||
f(0)
|
||||
res = "OK"
|
||||
suspendCoroutine<Unit> {}
|
||||
}.startCoroutine(Continuation(EmptyCoroutineContext) {
|
||||
it.getOrThrow()
|
||||
})
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user