ritesh
02/27/2020, 9:57 AMreified inlined function
is not yet supported in KMP for iOS? Basically I have wrapped Json.nonstrict.parseList
in a different function which looks like inline fun <reified T : Any> listParser(): List<T> { ... }
. It’s crashing on iOS saying Uncaught Kotlin exception: kotlin.IllegalStateException: unsupported call of reified inlined function
though it’s working fine on Android. Just wanted to check if it’s not supported or am I doing something wrong 😅jb.igor.chevdar
02/27/2020, 11:54 AMreified inline function
from ObjC/Swift explicitly, are you not? It’s not safe since the compiler doesn’t know type argument T
at the callsite.ritesh
02/27/2020, 7:13 PMJson.parseList()
anymore, there’s another way to parse a json to a list via Json.parse(someDeserializer().list)
which doesn’t need reified
declaration so no more crashing 🙂