Files
kotlin-fork/compiler/testData/codegen/box/properties/lateinit/privateSetterViaSubclass.kt
T
Alexander Udalov 7d80afbe63 Avoid getting invisible_fake visibility for properties in ExpressionCodegen
Before this change, we were computing the visibility of an inherited
private property setter, and ISE at AsmUtil.getVisibilityAccessFlag
happened ("invisible_fake is not a valid visibility in backend")
2017-09-13 22:49:26 +03:00

17 lines
231 B
Kotlin
Vendored

open class A {
lateinit var x: String
private set
protected fun set(value: String) { x = value }
}
class B : A() {
fun init() { set("OK") }
}
fun box(): String {
val b = B()
b.init()
return b.x
}