blob: 94012a8177823b102a88db90a98ec3768ab62744 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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)
}
}
|