summaryrefslogtreecommitdiff
path: root/test/files/run/regularpatmatnew.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/regularpatmatnew.scala')
-rw-r--r--test/files/run/regularpatmatnew.scala1
1 files changed, 1 insertions, 0 deletions
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() )
}