Fixed KT-5158 Smart completion for when selector: do not include subject variable

#KT-5158 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-07-22 18:41:54 +04:00
parent 595ef9f1d4
commit bddb01888a
4 changed files with 27 additions and 3 deletions
@@ -9,3 +9,4 @@ fun foo(e: ElementType) {
// ABSENT: ElementType.FIELD
// EXIST: ElementType.TYPE
// ABSENT: e
@@ -0,0 +1,8 @@
fun foo(p1: String, p2: String) {
when (p1) {
<caret>
}
}
// ABSENT: p1
// EXIST: p2