Report of UNINITIALIZED_ENUM_COMPANION also for implicit receivers #KT-11769 Fixed
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ enum class EnumCompanion1(val x: Int) {
|
||||
}
|
||||
// Also should be reported for implicit receiver
|
||||
enum class EnumCompanion2(val x: Int) {
|
||||
INSTANCE(foo()); // TODO
|
||||
INSTANCE(<!UNINITIALIZED_ENUM_COMPANION!>foo<!>());
|
||||
|
||||
companion object {
|
||||
fun foo() = 42
|
||||
|
||||
Reference in New Issue
Block a user