Do generics work when using a Kotlin native librar...
# kotlin-native
s
Do generics work when using a Kotlin native library in swift? I've read that they don't work. Is this planned?
j
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