fix(KT-50270): inline properties accessor for child classes too.

This commit is contained in:
Artem Kobzar
2022-04-27 10:21:38 +00:00
committed by Space
parent 3de1235fda
commit ccc2aae841
14 changed files with 110 additions and 4 deletions
@@ -0,0 +1,20 @@
fun box(stepId: Int): String {
val parent = Parent("parent")
val child = Child("child")
if (parent.name != "parent") return "fail: initial parent name at step $stepId"
if (child.name != "child") return "fail: initial child name at step $stepId"
parent.name = "updated parent"
if (parent.name != "updated parent") return "fail: updated parent name at step $stepId"
child.name = "updated child"
if (child.name != "updated child") return "fail: updated child name at step $stepId"
if (!parent.isValid) return "fail: parent is invalid at step $stepId"
if (!child.isValid) return "fail: child is invalid at step $stepId"
return "OK"
}
@@ -0,0 +1,5 @@
STEP 0:
dependencies: stdlib, lib1, lib2
dirty: m.kt
STEP 1..4:
dependencies: stdlib, lib1, lib2