blob: 80c0f90f694b7840ea5fc67b62e8ba87a0dbe2ab (
plain) (
tree)
|
|
object Test {
val c0 = false
val c1 = true
def foo(x: List[Boolean], y: List[Boolean]) = (x,y) match {
case (`c0`::x, `c0`::y) => x
case (`c0`::x, `c1`::y) => y
case (`c1`::x, `c0`::y) => y
case (`c1`::x, `c1`::y) => x
}
}
|