[FIR] Create checker for simple enum entries with missing overrides

Complex enum entries (those with bodies) with missing overrides
are covered by an existing checker that checks all types of classes. But
simple enum entries (those without bodies) were not covered and require
a separate checker for missing overrides.

#KT-58637 Fixed
This commit is contained in:
Brian Norman
2023-05-22 10:50:34 -05:00
committed by Space Team
parent 5bf51318eb
commit 8091aebbc7
11 changed files with 91 additions and 4 deletions
@@ -6,7 +6,7 @@ enum class EnumImplementingTraitWithFun: T1 {
E1 {
override fun foo() {}
},
E2
<!ABSTRACT_MEMBER_NOT_IMPLEMENTED_BY_ENUM_ENTRY!>E2<!>
}
interface T2 {
@@ -17,5 +17,5 @@ enum class EnumImplementingTraitWithVal: T2 {
E1 {
override val bar = 1
},
E2
}
<!ABSTRACT_MEMBER_NOT_IMPLEMENTED_BY_ENUM_ENTRY!>E2<!>
}