summaryrefslogblamecommitdiff
path: root/test/files/pos/t2691.scala
blob: 5f0ddd122f875f95618a4b1389ee081df2aa092d (plain) (tree)
1
2
3
4
5
6
7
8
                  
                                                                      





                                                       







                                                       
object Breakdown {
  def unapplySeq(x: Int): Some[List[String]] = Some(List("", "there"))
}
object Test {
  42 match {
    case Breakdown("") =>  // needed to trigger bug
    case Breakdown("", who) => println ("hello " + who)
  }
}
object Test2 {
  42 match {
    case Breakdown("") =>  // needed to trigger bug
    case Breakdown("foo") =>  // needed to trigger bug
    case Breakdown("", who) => println ("hello " + who)
  }
}