Fixed KT-2488 Optimizing imports removes references to enum constants when they are referred via short name in code
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user