Files
kotlin-fork/compiler/testData/codegen/box/callableReference/property/overriddenInSubclass.kt
T
2020-11-09 16:04:43 +03:00

12 lines
218 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: PROPERTY_REFERENCES
open class Base {
open val foo = "Base"
}
class Derived : Base() {
override val foo = "OK"
}
fun box() = (Base::foo).get(Derived())