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


                                               








                                                   
 
/*
 * filter: It would fail on the following input
 */
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)
    }
  }
}