10 lines
142 B
Kotlin
Vendored
10 lines
142 B
Kotlin
Vendored
open class Base {
|
|
open val foo = "Base"
|
|
}
|
|
|
|
class Derived : Base() {
|
|
override val foo = "OK"
|
|
}
|
|
|
|
fun box() = (Base::foo).get(Derived())
|