summaryrefslogblamecommitdiff
path: root/test/neg/bug97.scala
blob: c9bfebcfa00cd52b730cb65e03362c3f61b657cd (plain) (tree)
1
2
3
4
5
6
7






                                                                 
object Main {
  def foo(x: Any) = x match {
    case List(y) => "zero"
    case y :: ys => "one"
  }
  def main(args: Array[String]) = System.out.println(List(1, 2));
}