[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:
@@ -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<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user