diff options
Diffstat (limited to 'tests/untried/neg/t7285.check')
-rw-r--r-- | tests/untried/neg/t7285.check | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/untried/neg/t7285.check b/tests/untried/neg/t7285.check new file mode 100644 index 000000000..a38772bea --- /dev/null +++ b/tests/untried/neg/t7285.check @@ -0,0 +1,15 @@ +t7285.scala:15: warning: match may not be exhaustive. +It would fail on the following input: (Up, Down) + (d1, d2) match { + ^ +t7285.scala:33: warning: match may not be exhaustive. +It would fail on the following input: Down + (d1) match { + ^ +t7285.scala:51: warning: match may not be exhaustive. +It would fail on the following input: (Up, Down) + (d1, d2) match { + ^ +error: No warnings can be incurred under -Xfatal-warnings. +three warnings found +one error found |