diff options
author | Burak Emir <emir@epfl.ch> | 2007-02-05 17:17:17 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2007-02-05 17:17:17 +0000 |
commit | 2f4f3d3db7c2eb9ed535065ffed8098a99de0278 (patch) | |
tree | d3d8c20356bd8f76d1b4b7aa298507232ae028cb /test/files/run/regularpatmatnew.scala | |
parent | 912077c5f8d59b2585a3a5014c193a8399b672d1 (diff) | |
download | scala-2f4f3d3db7c2eb9ed535065ffed8098a99de0278.tar.gz scala-2f4f3d3db7c2eb9ed535065ffed8098a99de0278.tar.bz2 scala-2f4f3d3db7c2eb9ed535065ffed8098a99de0278.zip |
exhaustivity reworked
Diffstat (limited to 'test/files/run/regularpatmatnew.scala')
-rw-r--r-- | test/files/run/regularpatmatnew.scala | 1 |
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() ) } |