blob: e08fc12e761811633ca48dda067c211926801e26 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
object Test {
def main(args: Array[String]) {
foo(Nil, Nil)
}
def foo(h: Any, t: List[Any]) = h match {
case 5 :: _ => ()
case List(from) => List(from, from, from)
}
}
|