8528c23194
TODO: extract nested initializers somehow.
19 lines
328 B
Kotlin
Vendored
19 lines
328 B
Kotlin
Vendored
interface ILeft {
|
|
fun foo() {}
|
|
val bar: Int get() = 1
|
|
}
|
|
|
|
interface IRight {
|
|
fun foo() {}
|
|
val bar: Int get() = 2
|
|
}
|
|
|
|
class CBoth : ILeft, IRight {
|
|
override fun foo() {
|
|
super<ILeft>.foo()
|
|
super<IRight>.foo()
|
|
}
|
|
|
|
override val bar: Int
|
|
get() = super<ILeft>.bar + super<IRight>.bar
|
|
} |