Hey folks, quick question, is it expected that whe...
# kotlin-native
n
Hey folks, quick question, is it expected that when I have this sealed hiearchy:
Copy code
sealed class Parent {
    object Child1: Parent()
    object Child2: Parent()
}
I still get
Parent.init
available in Objective-C/Swift, even though this class cannot be instantiated in Kotlin. Should I file a bug?
d
Abstract class can still have ctors, if that's what init is about.
n
exactly, but I don’t see why they (ctors) should be exposed to iOS
one can’t sublcass sealed classes from there anyway
d
Might be impossible to hide on the objc side.
n
Probably, but I have my doubts.