Files
kotlin-fork/compiler/testData/diagnostics/tests/delegation/covariantOverrides/kt13952.fir.kt
T

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
}