mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
10 lines
142 B
Kotlin
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())
|