Files
kotlin-fork/idea/testData/quickfix/autoImports/enumEntriesImportAbsentJsRuntime.kt
T
Nikolay Krasko 6a9c368532 Auto-import does not suggest enum constant (KT-14100)
#KT-14100 Fixed

(cherry picked from commit 61730ee)
2016-12-01 14:33:37 +03:00

24 lines
440 B
Kotlin
Vendored

// "Import" "false"
// ACTION: Convert property initializer to getter
// ACTION: Create object 'BLUE'
// ACTION: Create property 'BLUE'
// ACTION: Import member
// ACTION: Rename reference
// ERROR: Unresolved reference: BLUE
// Import should be present only in "Import member" action
package e
enum class ImportEnum {
RED, GREEN, BLUE
}
class ImportClass {
companion object {
val BLUE = 0
}
}
val v5 = B<caret>LUE