Files
kotlin-fork/compiler/testData/codegen/box/delegatedProperty/privateInSubClass.kt
T
2021-02-25 19:30:15 +03:00

21 lines
258 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_RUNTIME
open class A {
private val _myVal by lazy {
"1" + "2"
}
}
class B : A() {
private val _myVal by lazy {
"O" + "K"
}
fun res() = _myVal
}
fun box(): String {
return B().res()
}