summaryrefslogtreecommitdiff
path: root/test/files/neg/patmatexhaust.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/patmatexhaust.scala')
-rw-r--r--test/files/neg/patmatexhaust.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/patmatexhaust.scala b/test/files/neg/patmatexhaust.scala
index 0416749b88..aaa32cda24 100644
--- a/test/files/neg/patmatexhaust.scala
+++ b/test/files/neg/patmatexhaust.scala
@@ -52,6 +52,10 @@ class TestSealedExhaustive { // compile only
case Ga =>
}
+ def ma6 = List(1,2) match { // give up
+ case List(1,2) =>
+ case x :: xs =>
+ }
def redundant = 1 match { // include this otherwise script won't test this in files/neg
case 1 =>
case 1 =>