user
03/21/2017, 1:48 AMhttps://kotlinlang.slack.com/files/U1PEF150S/F4LEJS0KB/screen_shot_2017-03-20_at_9.36.54_pm.png▾
bind
doesn't change just because you've extended MySealedClass
... here you'd need something like a "This" type, which can only really be done in Kotlin using a recursive generic:
sealed class MySealedClass<T : MySealedClass<T>> {
abstract fun bind(implementation: T)
class MyImplementation : MySealedClass<MyImplementation>() {
override fun bind(implementation: MyImplementation) {
// ...
}
}
}