mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
17 lines
399 B
Kotlin
Vendored
17 lines
399 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// TREAT_AS_ONE_FILE
|
|
|
|
import kotlin.coroutines.*
|
|
import kotlin.coroutines.intrinsics.*
|
|
suspend fun suspendHere(): String = suspendCoroutineUninterceptedOrReturn { x ->
|
|
x.resumeWith(Result.success("OK"))
|
|
}
|
|
|
|
suspend fun suspendThere(param: Int, param2: String, param3: Long): String {
|
|
val a = suspendHere()
|
|
val b = suspendHere()
|
|
return a + b
|
|
}
|
|
|
|
// 1 ASTORE 4
|