7a6a3a0b1d
#KT-57284
30 lines
470 B
Kotlin
Vendored
30 lines
470 B
Kotlin
Vendored
// ISSUE: KT-57105
|
|
|
|
class RootBus: MessageBusImpl()
|
|
|
|
open class MessageBusImpl {
|
|
val parentBus: Any?
|
|
|
|
init {
|
|
this as RootBus
|
|
parentBus = "O"
|
|
}
|
|
}
|
|
|
|
class RootBus2: CompositeMessageBus2()
|
|
|
|
open class CompositeMessageBus2: MessageBusImpl2()
|
|
|
|
open class MessageBusImpl2 {
|
|
val parentBus: Any?
|
|
|
|
init {
|
|
this as RootBus2
|
|
parentBus = "K"
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return "" + RootBus().parentBus + RootBus2().parentBus
|
|
}
|