Files
kotlin-fork/backend.native/tests/external/codegen/box/callableReference/property/overriddenInSubclass.kt
T
2017-03-13 15:31:46 +03:00

10 lines
142 B
Kotlin

open class Base {
open val foo = "Base"
}
class Derived : Base() {
override val foo = "OK"
}
fun box() = (Base::foo).get(Derived())