mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
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())
|