mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
The primary reason is getting rid of redundant stack spilling, but also it's not very sensible to have such entry since the parameter is synthetic
18 lines
417 B
Kotlin
Vendored
18 lines
417 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// WITH_COROUTINES
|
|
import helpers.*
|
|
// TREAT_AS_ONE_FILE
|
|
import kotlin.coroutines.experimental.*
|
|
import kotlin.coroutines.experimental.intrinsics.*
|
|
suspend fun suspendHere(): String = suspendCoroutineOrReturn { x ->
|
|
x.resume("OK")
|
|
}
|
|
|
|
suspend fun suspendThere(param: Int, param2: String, param3: Long): String {
|
|
val a = suspendHere()
|
|
val b = suspendHere()
|
|
return a + b
|
|
}
|
|
|
|
// 0 ASTORE 4
|