Files
kotlin-fork/js/js.translator/testFiles/trait/cases/traitExtendsTwoTraits.kt
T

26 lines
313 B
Kotlin

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