Files
kotlin/compiler/testData/codegen/bytecodeText/coroutines/doNotReassignContinuation.kt
2019-07-31 21:17:09 +03:00

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