Introduce Variable: Fix extraction of expression from when-entry condition

#KT-8444 Fixed
This commit is contained in:
Alexey Sedunov
2015-09-02 15:07:44 +03:00
parent 3038e2382b
commit c005fe613f
4 changed files with 24 additions and 1 deletions
@@ -0,0 +1,6 @@
fun f(x : Int) {
val y = if (x < 0) 1 else when {
<selection>x - 1</selection> < 1 -> 2
else -> 3
}
}