Files
kotlin/compiler/testData/codegen/box/properties/traitExtendsClass.kt
2015-05-12 19:43:17 +02:00

17 lines
232 B
Kotlin

open class Base {
val pr : String = "OK"
}
interface Trait : Base {
fun f() : String {
return this.pr
}
}
class A : Trait, Base() {
}
fun box() : String {
return if (A().f() == A().pr) "OK" else "fail"
}