Don't remove else block if it participate in other expression (KT-18309)

#KT-18309 Fixed
This commit is contained in:
Nikolay Krasko
2017-06-06 20:16:24 +03:00
parent 5c993ce83f
commit 0e693c39a3
9 changed files with 86 additions and 7 deletions
@@ -0,0 +1,6 @@
fun test() {
val t = 1
val f = 2
val a: Int
a = if (true) t else <caret>f
}