Unused symbol inspection should detect enum entry

#KT-30612 Fixed
This commit is contained in:
Dmitry Gridin
2019-03-26 12:08:38 +07:00
parent ce1ec49625
commit dbe0b4aa71
16 changed files with 136 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
// "Safe delete 'WORLD'" "true"
enum class MyEnum(val i: Int) {
WORLD<caret>("42"),
HELLO(42)
;
constructor(s: String): this(42)
}
fun test() {
MyEnum.HELLO
}