blob: b9db7f7e8a885659f3405c634f0920709febe447 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
object Test extends App {
val y = (0: Int) match {
case 1 => 1
case 0 | 0 => 0
case 2 | 2 | 2 | 3 | 2 | 3 => 0
case 4 | (_ @ 4) => 0
case _ => -1
}
assert(y == 0, y)
}
|