summaryrefslogtreecommitdiff
path: root/test/pending/pos/t2691.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/pos/t2691.scala')
-rw-r--r--test/pending/pos/t2691.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pending/pos/t2691.scala b/test/pending/pos/t2691.scala
new file mode 100644
index 0000000000..ba2e52f1fe
--- /dev/null
+++ b/test/pending/pos/t2691.scala
@@ -0,0 +1,9 @@
+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)
+ }
+} \ No newline at end of file