[FIR] Report ABSTRACT_MEMBER_NOT_IMPLEMENTED_BY_ENUM_ENTRY on enum entries with initializer

#KT-59577 Fixed
This commit is contained in:
Kirill Rakhman
2023-09-22 13:10:45 +02:00
committed by Space Team
parent ef78d4b95a
commit 44a4498ee5
5 changed files with 46 additions and 4 deletions
@@ -0,0 +1,13 @@
enum class EnumClass {
E1 {
override fun foo() = 1
override val bar: String = "a"
},
<!ABSTRACT_MEMBER_NOT_IMPLEMENTED_BY_ENUM_ENTRY!>E2<!> {
};
abstract fun foo(): Int
abstract val bar: String
}