Raymond Chan
07/18/2022, 10:12 AMkotlin.Result on swift with generic? Seems generic is not recognized and when trying to get items on Swfit, Any? is the return type.
In Kotlin
class SampleClazz {
fun funcThatReturnKotlinResult(): Result<Int> {
return Result.success(10)
}
}
In Swift, Int generic is not being recognized:Nicklas Jensen
07/18/2022, 12:15 PMResult<T> don't translate to Objective-C, and as such are represented as having the type Any?. This is a known limitation.