FE 1.0: add deprecation ABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTED_WARNING

#KT-45508 Fixed
This commit is contained in:
Mikhail Glukhikh
2021-04-07 11:00:31 +03:00
parent 59b5475350
commit cc05d91bda
17 changed files with 625 additions and 48 deletions
@@ -1,3 +1,5 @@
// !LANGUAGE: +AbstractClassMemberNotImplementedWithIntermediateAbstractClass
abstract class ALeft {
abstract fun foo()
}
@@ -6,4 +8,34 @@ interface IRight {
fun foo() {}
}
class CDerived : ALeft(), IRight
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()