p

    pardom

    3 years ago
    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

    3 years ago
    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.
    kpgalligan

    kpgalligan

    3 years ago
    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

    3 years ago
    For reference, this is the issue I’m dealing with right now: https://github.com/JetBrains/kotlin-native/issues/2752
    kpgalligan

    kpgalligan

    3 years ago
    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