Files
kotlin-fork/js/js.translator/testData/trait/cases/traitExtendsTwoTraits.kt
T
2015-09-22 15:00:24 +02:00

26 lines
327 B
Kotlin
Vendored

package foo
interface A {
fun addFoo(s: String): String {
return s + "FOO"
}
}
interface B {
fun hooray(): String {
return "hooray"
}
}
interface AD : A, B {
}
class Test() : AD {
fun eval(): String {
return addFoo(hooray());
}
}
fun box() = (Test().eval() == "hoorayFOO")