[FIR2IR] Fix generation of val initialization after smart-cast
If neither setter nor backing field were found for an assignment call, search overridden properties for backing fields. ^KT-57105 Fixed
This commit is contained in:
committed by
Space Team
parent
2706e5502f
commit
0e721c8fc2
+16
@@ -0,0 +1,16 @@
|
||||
// ISSUE: KT-57105
|
||||
|
||||
class RootBus: MessageBusImpl()
|
||||
|
||||
open class MessageBusImpl {
|
||||
val parentBus: Any?
|
||||
|
||||
init {
|
||||
this as RootBus
|
||||
parentBus = "OK"
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return RootBus().parentBus as String
|
||||
}
|
||||
Reference in New Issue
Block a user