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,11 @@
import java.lang.annotation.ElementType
fun foo(e: ElementType) {
when(e) {
ElementType.FIELD -> x()
<caret>
}
}
// ABSENT: ElementType.FIELD
// EXIST: ElementType.TYPE