Files
kotlin/compiler/testData/codegen/box/properties/traitExtendsClass.kt
2013-04-18 15:03:43 +04:00

17 lines
228 B
Kotlin

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