Files
kotlin-fork/compiler/testData/codegen/box/traits/inheritedFun.kt
T
Juan Chen 4c04ad2371 FIR: Add bindings for dispatch receiver parameters
Before this commit, such descriptors have null owners, which causes problems when the getter of the owner property is called.
2019-12-27 10:13:44 +03:00

11 lines
135 B
Kotlin
Vendored

//KT-2206
interface A {
fun f():Int = 239
}
class B() : A
fun box() : String {
return if (B().f() == 239) "OK" else "fail"
}