summaryrefslogblamecommitdiff
path: root/test/files/neg/patternalts.scala
blob: 62d0325a8b5d3d248b07213f76b7a0e6b130ed27 (plain) (tree)
1
2
3
4
5
6
7
8




                                               
                                                   

   
object Test {
  List(1) match {
    case List(x) | List() => Console.println(x)
  }
  List(2) match {
    case List(_: Int) | List() => Console.println()
  }
}