mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
14 lines
179 B
Kotlin
Vendored
14 lines
179 B
Kotlin
Vendored
interface T1 {
|
|
fun foo() = "O"
|
|
}
|
|
|
|
interface T2 {
|
|
fun foo() = "K"
|
|
}
|
|
|
|
class A : T1, T2 {
|
|
override fun foo() = super<T1>.foo() + super<T2>.foo()
|
|
}
|
|
|
|
fun box() = A().foo()
|