Update "defaultness" for property accessor with inherited visibility

Property accessor that overrides a non-default property accessor with
visibility different from the property visibility was incorrectly
considered "default". Corresponding metadata was written incorrectly,
and 'internal' setter call caused NSME

 #KT-23044 Fixed Target versions 1.2.40
This commit is contained in:
Dmitry Petrov
2018-03-01 17:58:19 +03:00
parent 8e8c5fae01
commit 31996f1139
4 changed files with 32 additions and 2 deletions
@@ -0,0 +1,16 @@
// FILE: A.kt
abstract class Base {
abstract var x: String
internal set
}
class Derived: Base() {
override var x: String = "Z"
}
// FILE: B.kt
fun box(): String {
val d = Derived()
d.x = "OK"
return d.x
}