KT-5079 Support smart completion for when values

#KT-5079 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-05-28 21:52:43 +04:00
parent 1bc8812613
commit 4be1cc2786
19 changed files with 302 additions and 15 deletions
@@ -0,0 +1,17 @@
enum class E {
A
B
C
}
fun foo(e: E) {
when(e) {
E.A -> x()
E.<caret>
}
}
// ABSENT: A
// EXIST: B
// EXIST: C
// ABSENT: else