One of the talks at Kotlinconf mentioned that enum...
# kotlin-native
s
One of the talks at Kotlinconf mentioned that enums and sealed classes don’t translate well to Swift, and that by using them you lose compile errors when not covering all enum cases with a switch statement etc. One of the suggested solutions was to write Swift enum wrappers for them. I’m curious if there is a ticket for this that I can follow, or some other proposed solution that’s planned?
b
I filed a related ticket awhile ago: https://github.com/JetBrains/kotlin-native/issues/2521
s
thanks. I wonder if it’s worth filing a separate bug for sealed classes and Swift
👍 2