diff options
Diffstat (limited to 'test/files/neg/patmatexhaust.check')
-rw-r--r-- | test/files/neg/patmatexhaust.check | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/files/neg/patmatexhaust.check b/test/files/neg/patmatexhaust.check index 7cdf43c8ca..2011e4afaf 100644 --- a/test/files/neg/patmatexhaust.check +++ b/test/files/neg/patmatexhaust.check @@ -20,8 +20,12 @@ missing combination Gp def ma4(x:Deep) = x match { // missing cases: Gu, Gp ^ +patmatexhaust.scala:53: warning: match is not exhaustive! + + def ma5(x:Deep) = x match { // Gp + ^ patmatexhaust.scala:70: error: unreachable code case 1 => ^ -four warnings found +5 warnings found one error found |