Minor, suppress unchecked cast warning
This commit is contained in:
committed by
Space Team
parent
ab195b68a5
commit
4db2bc28f2
@@ -157,7 +157,7 @@ private inline fun <T> createCoroutineFromSuspendFunction(
|
||||
@PublishedApi
|
||||
internal fun <T> createSimpleCoroutineFromSuspendFunction(
|
||||
completion: Continuation<T>
|
||||
): CoroutineImpl = object : CoroutineImpl(completion as Continuation<Any?>) {
|
||||
): CoroutineImpl = object : CoroutineImpl(@Suppress("UNCHECKED_CAST") (completion as Continuation<Any?>)) {
|
||||
override fun doResume(): Any? {
|
||||
if (exception != null) throw exception as Throwable
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user