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
+13
View File
@@ -0,0 +1,13 @@
// "Safe delete 'WORLD'" "true"
enum class MyEnum(val i: Int) {
HELLO(42),
WORLD<caret>("42"),
E(24)
;
constructor(s: String): this(42)
}
fun test() {
MyEnum.HELLO
}