mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Generate probeCoroutineSuspended call in suspendCoroutineUninterceptedOrReturn
#KT-25508: Fixed
This commit is contained in:
17
compiler/testData/codegen/bytecodeText/coroutines/debug/probeCoroutineSuspended.kt
vendored
Normal file
17
compiler/testData/codegen/bytecodeText/coroutines/debug/probeCoroutineSuspended.kt
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// LANGUAGE_VERSION: 1.3
|
||||
// WITH_RUNTIME
|
||||
// TREAT_AS_ONE_FILE
|
||||
|
||||
import kotlin.coroutines.intrinsics.*
|
||||
import kotlin.coroutines.*
|
||||
|
||||
suspend fun suspended() = suspendCoroutineUninterceptedOrReturn<Int> { cont ->
|
||||
cont.resume(0)
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
|
||||
suspend fun simpleReturn() = suspendCoroutineUninterceptedOrReturn<Int> { cont ->
|
||||
cont.resume(0)
|
||||
}
|
||||
|
||||
// 2 INVOKESTATIC kotlin/coroutines/jvm/internal/DebugProbesKt.probeCoroutineSuspended
|
||||
Reference in New Issue
Block a user