https://kotlinlang.org logo
Title
m

mkrussel

12/07/2021, 5:13 PM
I'm seeing strange behavior with suspend functions that return
Result
. I can see that the body of the suspend function is returning what I expect. The
toString
return
Success(null)
or something like that. The caller of the suspend function is then getting an object with a toString of
Success(Success(null))
. When I return that from another suspend function it does not get wrapped a third time and still logs as
Success(Success(null))
. This is running on Android with Kotlin
1.5.31
and coroutines
1.5.2-native-mt
i

Ilmir Usmanov [JB]

12/07/2021, 7:50 PM
Seems like a bug. Can you, please, file an issue at https://youtrack.jetbrains.com/issues/KT?
m

mkrussel

12/07/2021, 7:57 PM
OK