blob: 1037b53601194903e0989f225bf9cf4dcec3ae6e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
object Breakdown {
def unapplySeq(x: Int): Some[List[String]] = Some(List("", "there"))
}
object Test {
42 match {
case Breakdown("") => // needed to trigger bug
case Breakdown("foo") => // needed to trigger bug
case Breakdown("", who) => println ("hello " + who)
}
}
|