https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
p

pardom

03/08/2019, 4:00 PM
Is there any documentation on K\N generic function interop? There’s nothing in here https://github.com/JetBrains/kotlin-native/blob/master/OBJC_INTEROP.md#function-types
s

Sam

03/08/2019, 6:24 PM
You’re limited to what ObjC supports which isn’t much. It has what it calls light weight generics support. Basically container types such as NSArray and NSDictionary support generics and that is it.
k

kpgalligan

03/08/2019, 6:38 PM
I’m super focused on this now. Playing with adding some generic support to class def, but the features of Kotlin, Objc, and Swift WRT generics don’t all line up.
I’m also super tired of reading about generics
p

pardom

03/08/2019, 6:40 PM
For reference, this is the issue I’m dealing with right now: https://github.com/JetBrains/kotlin-native/issues/2752
k

kpgalligan

03/08/2019, 6:41 PM
Yeah, I grabbed you code and tried to sort out the issue, although I kind of need to get back to what I was doing
My “dumb” guess is that one of those “init()” calls is not getting renamed appropriately in ios and initing the ios class rather than calling “init()“, but I can’t really tell. the exception isn’t throwing, just logging the name, which is making that difficult, but I didn’t unwind the code too far to try to figure that out
2 Views