unwrap parentheses around range expressions in pattern matching conditions (KT-1742) (thanks to Sergey Mashkov for the suggested fix)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
fun box(): String {
|
||||
val x = 2
|
||||
return when(x) {
|
||||
in (1..3) -> "OK"
|
||||
else -> "fail"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user