summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/files/run/regularpatmat.scala16
1 files changed, 14 insertions, 2 deletions
diff --git a/test/files/run/regularpatmat.scala b/test/files/run/regularpatmat.scala
index 21a7141c32..0b1b6d6085 100644
--- a/test/files/run/regularpatmat.scala
+++ b/test/files/run/regularpatmat.scala
@@ -1,7 +1,19 @@
// Burak's test suite for regular pattern matching
-// contains 17 visitors
-
+// contains 17 visitors plus X
+
+// analyzer related (no execution)
+object bug179 {
+ case class One();
+ object Foo with Executable {
+ def test(xs: List[Any]) = xs match {
+ case List(((((One(), One())*) | (One(), One())), One())) =>
+ Console.println("case")
+ case _ =>
+ Console.println("default");
+ }
+ }
+}
// testW? are for recognition only ( no variables )
// testB? are for variables binding