Coroutines bug fix: correct handling of returnIfSuspended intrinsic
This commit is contained in:
@@ -9,7 +9,7 @@ internal fun <T> getContinuation(): Continuation<T> = throw AssertionError("Call
|
||||
|
||||
@Intrinsic
|
||||
@PublishedApi
|
||||
internal fun <T> returnIfSuspended(value: Any?): T = throw AssertionError("Call to returnIfSuspended should've been lowered")
|
||||
internal suspend fun <T> returnIfSuspended(value: Any?): T = throw AssertionError("Call to returnIfSuspended should've been lowered")
|
||||
|
||||
// Single-threaded continuation.
|
||||
class SafeContinuation<in T>
|
||||
|
||||
Reference in New Issue
Block a user