Files
Alexey Sedunov c9af23ec88 Introduce Variable: Fix extraction of expression from when-entry condition
#KT-8444 Fixed

GitOrigin-RevId: 045cc29ec098a3f1ce00c5c26108cc15046b1c41
2015-09-03 22:06:12 +03:00

6 lines
125 B
Kotlin

fun f(x : Int) {
val y = if (x < 0) 1 else when {
<selection>x - 1</selection> < 1 -> 2
else -> 3
}
}