summaryrefslogtreecommitdiff
path: root/test/files/run/regularpatmat.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/regularpatmat.scala')
-rw-r--r--test/files/run/regularpatmat.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/run/regularpatmat.scala b/test/files/run/regularpatmat.scala
index 394b1931eb..6e4c30a5c8 100644
--- a/test/files/run/regularpatmat.scala
+++ b/test/files/run/regularpatmat.scala
@@ -652,6 +652,10 @@ object testMZ {
}
+ def mat398(xs:List[Any]) = xs match { // bug#398
+ case List(1) => "one"
+ case x::xs => "two"
+ }
def main:Unit = {
Console.println("testMZ - bugs #132 #133b #180 #195 #196");
@@ -672,6 +676,7 @@ object testMZ {
assertEquals(mat195( Two() ),"default");
assertEquals(mat196( List(1) ),"default");
assertEquals(mat196( List() ),"case, b = List()");
+ assertEquals(mat398( List() ),"two");
()
}