Files
kotlin-fork/js/js.translator/testData/box/callableReference/property/overriddenInSubclass.kt
T
2018-06-04 18:59:40 +03:00

14 lines
278 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1123
// This test was adapted from compiler/testData/codegen/box/callableReference/property/.
package foo
open class Base {
open val foo = "Base"
}
class Derived : Base() {
override val foo = "OK"
}
fun box() = (Base::foo).get(Derived())