Fix incorrect UNINITIALIZED_ENUM_COMPANION diagnostic

#KT-20959 Fixed
This commit is contained in:
Denis Zharkov
2017-10-26 10:57:37 +03:00
parent b3b08514c5
commit 2df4d9496a
5 changed files with 52 additions and 1 deletions
@@ -0,0 +1,9 @@
// See KT-20959
enum class Foo {;
companion object {
val x = <!DEBUG_INFO_LEAKING_THIS!>foo<!>() // there should be no UNINITIALIZED_ENUM_COMPANION
private fun foo() = "OK"
}
}