mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
16 lines
373 B
Kotlin
Vendored
16 lines
373 B
Kotlin
Vendored
// 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
|