summaryrefslogtreecommitdiff
path: root/test/files/neg/patmatexhaust.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/patmatexhaust.check')
-rw-r--r--test/files/neg/patmatexhaust.check9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/files/neg/patmatexhaust.check b/test/files/neg/patmatexhaust.check
index 66b0f3c8ea..1c46b6c9e5 100644
--- a/test/files/neg/patmatexhaust.check
+++ b/test/files/neg/patmatexhaust.check
@@ -25,8 +25,13 @@ missing combination Gp
def ma5(x:Deep) = x match { // Gp
^
-patmatexhaust.scala:70: error: unreachable code
+patmatexhaust.scala:75: warning: match is not exhaustive!
+missing combination B
+
+ def ma9(x: B) = x match {
+ ^
+patmatexhaust.scala:92: error: unreachable code
case 1 =>
^
-5 warnings found
+6 warnings found
one error found