I have class like below. This class is in a API in SDK for Android application.
class temp {
suspend fun test(): Pair<String, Int> {
return Pair(“”, 1)
}
}
I want to keep this function, but the return type change to java.lang.Object.
Is there any way to keep this return type as kotlin.Pair?
In my mapping file, it shows that return type is changed.
java.lang.Object test(kotlin.coroutines.Continuation) → test
But when this is not a suspend function, it can keep return type as kotlin.Pair.
Sorry for my poor English.