https://kotlinlang.org logo
#result
Title
# result
a

aidanvii

08/19/2021, 1:58 PM
I recently started using
Result
as a return type as of Kotlin 1.5. I’m having seemingly random crashes with suspending functions that return
Result
(I haven’t checked with other inline/value classes). it’s happening in the generated
invokeSuspend
:
Copy code
Fatal Exception: java.lang.ClassCastException
java.util.ArrayList cannot be cast to kotlin.Result