mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
14 lines
123 B
Kotlin
14 lines
123 B
Kotlin
package test
|
|
|
|
trait X {
|
|
fun foo()
|
|
}
|
|
|
|
trait Y : X {
|
|
}
|
|
|
|
class B(val a: X) : X by a, Y {
|
|
override fun foo() {
|
|
}
|
|
}
|