Report of UNINITIALIZED_ENUM_COMPANION also for implicit receivers #KT-11769 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-08-09 15:30:27 +03:00
parent 04f71bccf2
commit 1c5c6506ce
5 changed files with 39 additions and 25 deletions
@@ -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