18 lines
230 B
Kotlin
Vendored
18 lines
230 B
Kotlin
Vendored
interface IA {
|
|
fun foo(): Number
|
|
}
|
|
|
|
interface IB : IA {
|
|
override fun foo(): Int
|
|
}
|
|
|
|
object AImpl : IA {
|
|
override fun foo() = 42
|
|
}
|
|
|
|
open class C : IA by AImpl, IB
|
|
|
|
class D : C() {
|
|
override fun foo(): Double = 3.14
|
|
}
|