summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2003-10-28 13:35:35 +0000
committerburaq <buraq@epfl.ch>2003-10-28 13:35:35 +0000
commit256df827c2b02627863027283e56869150b4e473 (patch)
treec62a425cf1aadfa5e05785fa9cd4a65b6392e2af /test
parent6f239df8e7ed5926eaaebba11578b80ad9911696 (diff)
downloadscala-256df827c2b02627863027283e56869150b4e473.tar.gz
scala-256df827c2b02627863027283e56869150b4e473.tar.bz2
scala-256df827c2b02627863027283e56869150b4e473.zip
added test case for analyzer (bug179)
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