I recently started using `Result` as a return type...
# result
a
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