<@U0BAPNP63> commented on <@U1PEF150S>’s file <htt...
# announcements
u
@damian commented on @zak.taccardi’s file

https://kotlinlang.slack.com/files/U1PEF150S/F4LEJS0KB/screen_shot_2017-03-20_at_9.36.54_pm.png

: The signature of
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:
Copy code
sealed class MySealedClass<T : MySealedClass<T>> {

  abstract fun bind(implementation: T)

  class MyImplementation : MySealedClass<MyImplementation>() {
    override fun bind(implementation: MyImplementation) {
      // ...
    }
  }

}