Items filtered out from smart completion take lower priority in ordinary one + lower priority for Enum.valueOf

This commit is contained in:
Valentin Kipyatkov
2015-08-06 16:05:46 +03:00
parent 2a8dcabbce
commit be0a0e4401
7 changed files with 61 additions and 20 deletions
@@ -0,0 +1,19 @@
enum class E {
A,
B,
C
}
fun foo(e: E) {
when (e) {
E.A -> {}
E.<caret>
}
}
// ORDER: B
// ORDER: C
// ORDER: valueOf
// ORDER: values
// ORDER: A