Files
kotlin-fork/compiler/testData/codegen/box/traits/withRequired/kt3429.kt
T
2015-05-12 19:43:17 +02:00

17 lines
259 B
Kotlin

open class Base {
open fun sayHello(): String{
return "fail"
}
}
interface Trait: Base {
override fun sayHello(): String {
return "OK"
}
}
class Derived(): Base(), Trait
fun box() : String {
return Derived().sayHello()
}