https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
d

Daniele B

05/17/2021, 5:22 PM
Is it possible to call reified functions from Swift? I wrote in KMP a reified function, that returns a class implementing the interface “ScreenState”. Xcode doesn’t prompt me any error, but it crashes at runtime:
message has been deleted
The actual error says:
Copy code
Uncaught Kotlin exception: kotlin.IllegalStateException: unsupported call of reified inlined function StateProvider.get
So, I am assuming reified functions are not supported in Swift?
l

louiscad

05/18/2021, 2:01 PM
It's Kotlin-only AFAIK
43 Views