Files
kotlin-fork/compiler/testData/diagnostics/tests/java8Overrides/abstractBaseClassMemberNotImplemented.fir.kt
T
2021-04-29 15:24:49 +03:00

41 lines
664 B
Kotlin
Vendored

// !LANGUAGE: +AbstractClassMemberNotImplementedWithIntermediateAbstractClass
abstract class ALeft {
abstract fun foo()
}
interface IRight {
fun foo() {}
}
class CDerived : ALeft(), IRight
abstract class CAbstract : ALeft(), IRight
class CDerivedFromAbstract : CAbstract()
interface ILeft {
fun foo()
}
abstract class AILeft : ILeft
// Should be ERROR
class AILeftImpl : AILeft(), IRight
// Should be ERROR
class RightLeft : ILeft, IRight
interface IBase {
fun foo()
}
interface IBaseEx : IBase {
override fun foo() {}
}
abstract class AIBase : IBase
abstract class AIIntermediate : AIBase(), IBaseEx
class Impl : AIIntermediate()