Skip to content

Commit

Permalink
fixes ScopeCoroutine cast to internal CoroutineStackFrame (Kotlin#2386)
Browse files Browse the repository at this point in the history
  • Loading branch information
willbuck committed Nov 14, 2020
1 parent addff4b commit 75545ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotlinx-coroutines-core/common/src/internal/Scopes.kt
Expand Up @@ -16,7 +16,7 @@ internal open class ScopeCoroutine<in T>(
context: CoroutineContext,
@JvmField val uCont: Continuation<T> // unintercepted continuation
) : AbstractCoroutine<T>(context, true), CoroutineStackFrame {
final override val callerFrame: CoroutineStackFrame? get() = uCont as CoroutineStackFrame?
final override val callerFrame: CoroutineStackFrame? get() = uCont as? CoroutineStackFrame?
final override fun getStackTraceElement(): StackTraceElement? = null
final override val isScopedCoroutine: Boolean get() = true

Expand Down

0 comments on commit 75545ec

Please sign in to comment.