Files
kotlin/compiler/testData/codegen/box/super/multipleSuperTraits.kt
Alexander Udalov 41a416da60 Move blackBoxFile() testData to box/ directory
Delete all test methods (and empty test classes), since they'll be
auto-generated
2013-01-28 18:20:17 +04:00

14 lines
171 B
Kotlin

trait T1 {
fun foo() = "O"
}
trait T2 {
fun foo() = "K"
}
class A : T1, T2 {
override fun foo() = super<T1>.foo() + super<T2>.foo()
}
fun box() = A().foo()