diff options
author | buraq <buraq@epfl.ch> | 2003-10-28 13:35:35 +0000 |
---|---|---|
committer | buraq <buraq@epfl.ch> | 2003-10-28 13:35:35 +0000 |
commit | 256df827c2b02627863027283e56869150b4e473 (patch) | |
tree | c62a425cf1aadfa5e05785fa9cd4a65b6392e2af | |
parent | 6f239df8e7ed5926eaaebba11578b80ad9911696 (diff) | |
download | scala-256df827c2b02627863027283e56869150b4e473.tar.gz scala-256df827c2b02627863027283e56869150b4e473.tar.bz2 scala-256df827c2b02627863027283e56869150b4e473.zip |
added test case for analyzer (bug179)
-rw-r--r-- | test/files/run/regularpatmat.scala | 16 |
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 |