summaryrefslogtreecommitdiff
path: root/test/files/pos/bug2691.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/bug2691.scala')
-rw-r--r--test/files/pos/bug2691.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/bug2691.scala b/test/files/pos/bug2691.scala
new file mode 100644
index 0000000000..1037b53601
--- /dev/null
+++ b/test/files/pos/bug2691.scala
@@ -0,0 +1,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)
+ }
+}