From 2f4f3d3db7c2eb9ed535065ffed8098a99de0278 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Mon, 5 Feb 2007 17:17:17 +0000 Subject: exhaustivity reworked --- test/files/run/regularpatmatnew.scala | 1 + 1 file changed, 1 insertion(+) (limited to 'test/files/run/regularpatmatnew.scala') diff --git a/test/files/run/regularpatmatnew.scala b/test/files/run/regularpatmatnew.scala index a12ed5dfc6..a3401b2b7e 100644 --- a/test/files/run/regularpatmatnew.scala +++ b/test/files/run/regularpatmatnew.scala @@ -107,6 +107,7 @@ object Test { override def runTest() = { val res = (Bar(Foo()):Con) match { case Bar(xs@_*) => xs // this should be optimized away to a pattern Bar(xs) + case _ => Nil } assertEquals("res instance"+res.isInstanceOf[Seq[Con]]+" res(0)="+res(0), true, res.isInstanceOf[Seq[Foo]] && res(0) == Foo() ) } -- cgit v1.2.3