Files
kotlin-fork/compiler/testData/codegen/box/properties/lateinit/privateSetterViaSubclass.kt
T

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
}