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.scala12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/files/run/regularpatmat.scala b/test/files/run/regularpatmat.scala
index 2f97f8a398..6847861d4d 100644
--- a/test/files/run/regularpatmat.scala
+++ b/test/files/run/regularpatmat.scala
@@ -412,6 +412,15 @@ object testWR {
assertEquals( doit6( s10 ), "decimal number");
}
+ def test8: Unit = {
+ Console.println("testWR_8");
+
+ assertTrue( List('d','c').match {
+ case List('a'*, 'd'|'e', 'c'*) => true
+ case _ => false
+ });
+ }
+
def test7:Unit = {
Console.println("testWR_7");
assertEquals( List(1,2) match {
@@ -426,7 +435,8 @@ object testWR {
test4;
test5;
test6;
- test7;
+ test7;
+ test8;
}