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

18 lines
268 B
Kotlin

open class Foo() {
public fun k(): String = "K"
}
interface T: Foo {
public fun xyzzy(): String = o() + k()
public fun o(): String
}
class TImpl(): Foo(), T {
public override fun o(): String = "O"
}
fun box(): String {
return TImpl().xyzzy()
}