Lift assignment out: do not suggest if other assignments available

So #KT-18709 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-07-05 16:21:19 +03:00
parent 9c4dfa3343
commit 398f92dc6f
3 changed files with 32 additions and 4 deletions
@@ -0,0 +1,12 @@
// PROBLEM: none
fun foo(x: Boolean): String {
var s = ""
<caret>if (x) {
s += "a"
s += "b"
} else {
s += "c"
}
return s
}