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,18 @@
enum class E {
A
B
C
}
fun foo(e: E?) {
when(e) {
E.A -> x()
<caret>
}
}
// ABSENT: E.A
// EXIST: E.B
// EXIST: E.C
// EXIST: null
// EXIST: {"lookupString":"else","tailText":" ->","itemText":"else"}