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

21 lines
367 B
Kotlin

open class Base {
open fun sayHello(): String {
return "O"
}
}
interface Trait: Base {
override fun sayHello(): String {
return "K"
}
}
class Derived(): Base(), Trait {
override fun sayHello(): String {
return super<Base>.sayHello() + super<Trait>.sayHello()
}
}
fun box(): String {
return Derived().sayHello()
}