Join Slack
Powered by
Do generics work when using a Kotlin native librar...
# kotlin-native
s
spierce7
04/09/2018, 12:57 AM
Do generics work when using a Kotlin native library in swift? I've read that they don't work. Is this planned?
j
J-Rojas
04/09/2018, 1:08 AM
They are not currently supported for custom classes; the classes are exported as erased types. Probably would be a matter of adding support for it in the cinterop tool. See this file:
https://github.com/JetBrains/kotlin-native/blob/master/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/ObjCStubs.kt
5
Views
Open in Slack
Previous
Next