summaryrefslogblamecommitdiff
path: root/test/files/run/virtpatmat_opt_sharing.scala
blob: 119e3050ea74b170feb070d0e715a8654a842014 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                   
object Test extends App {
  virtMatch()
  def virtMatch() = {
    List(1, 3, 4, 7) match {
      case 1 :: 3 :: 4 :: 5 :: x => println("nope")
      case 1 :: 3 :: 4 :: 6 :: x => println("nope")
      case 1 :: 3 :: 4 :: 7 :: x => println(1)
    }
  }
}