From 256df827c2b02627863027283e56869150b4e473 Mon Sep 17 00:00:00 2001 From: buraq Date: Tue, 28 Oct 2003 13:35:35 +0000 Subject: added test case for analyzer (bug179) --- test/files/run/regularpatmat.scala | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'test/files/run/regularpatmat.scala') 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 -- cgit v1.2.3