Fixed KT-2488 Optimizing imports removes references to enum constants when they are referred via short name in code

This commit is contained in:
Natalia.Ukhorskaya
2012-08-31 14:50:17 +04:00
parent 737b794935
commit 84e846649f
4 changed files with 34 additions and 2 deletions
@@ -0,0 +1,12 @@
package test
import test.MyEnum.ONE
fun main(args: Array<String>) {
println(ONE)
}
public enum class MyEnum {
ONE
TWO
}
@@ -0,0 +1,12 @@
package test
import test.MyEnum.ONE
fun main(args: Array<String>) {
println(ONE)
}
public enum class MyEnum {
ONE
TWO
}