[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
+3 -2
View File
@@ -1,3 +1,4 @@
// RENDER_DIAGNOSTICS_FULL_TEXT
interface Some
object O1 : Some
@@ -26,11 +27,11 @@ enum class EnumClass {
override val bar: String = "a"
},
<!ABSTRACT_MEMBER_NOT_IMPLEMENTED!>E2<!> {
<!ABSTRACT_MEMBER_NOT_IMPLEMENTED_BY_ENUM_ENTRY!>E2<!> {
},
<!ABSTRACT_MEMBER_NOT_IMPLEMENTED!>E3<!>();
<!ABSTRACT_MEMBER_NOT_IMPLEMENTED_BY_ENUM_ENTRY!>E3<!>();
abstract fun foo(): Int
abstract val bar: String