[FIR2IR] Fix generation of val initialization after smart-cast, again

#KT-57284
This commit is contained in:
Kirill Rakhman
2023-03-15 10:49:57 +01:00
committed by Space Team
parent f1c673c166
commit 7a6a3a0b1d
2 changed files with 23 additions and 3 deletions
@@ -7,10 +7,23 @@ open class MessageBusImpl {
init {
this as RootBus
parentBus = "OK"
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 as String
return "" + RootBus().parentBus + RootBus2().parentBus
}