summaryrefslogtreecommitdiff
path: root/test/files/pos/t2691.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t2691.scala')
-rw-r--r--test/files/pos/t2691.scala9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/files/pos/t2691.scala b/test/files/pos/t2691.scala
index ba2e52f1fe..5f0ddd122f 100644
--- a/test/files/pos/t2691.scala
+++ b/test/files/pos/t2691.scala
@@ -6,4 +6,11 @@ object Test {
case Breakdown("") => // needed to trigger bug
case Breakdown("", who) => println ("hello " + who)
}
-} \ No newline at end of file
+}
+object Test2 {
+ 42 match {
+ case Breakdown("") => // needed to trigger bug
+ case Breakdown("foo") => // needed to trigger bug
+ case Breakdown("", who) => println ("hello " + who)
+ }
+}