unwrap parentheses around range expressions in pattern matching conditions (KT-1742) (thanks to Sergey Mashkov for the suggested fix)

This commit is contained in:
Dmitry Jemerov
2012-06-02 23:17:42 +02:00
parent d55af2a948
commit 58666f3eb7
3 changed files with 15 additions and 0 deletions
@@ -0,0 +1,7 @@
fun box(): String {
val x = 2
return when(x) {
in (1..3) -> "OK"
else -> "fail"
}
}