31996f1139
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
17 lines
235 B
Kotlin
Vendored
17 lines
235 B
Kotlin
Vendored
// 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
|
|
}
|