Hey everyone, I've stumbled across a case where an...
# kotlin-native
j
Hey everyone, I've stumbled across a case where an enum entry is prepended with "new" when using K/N for Objective-C interop, and I'm curious to why that is happening. In my KMP commonMain source set, I've defined:
Copy code
enum class BananaAge {
    NEW_BANANA,
    OLD_BANANA
}
Which generates the following in the header file.
Copy code
@property (class, readonly) LibraryNameBananaAge *theNewContact __attribute__((swift_name("theNewBanana")));
@property (class, readonly) LibraryNameBananaAge *oldBanana __attribute__((swift_name("oldBanana")));
I get the same result in the header file when using the ObjCName annotation. Anyone have any ideas why or what is happening under the hood?
l
j
I see, thanks!