diff options
Diffstat (limited to 'tests/untried/neg/t2442.check')
-rw-r--r-- | tests/untried/neg/t2442.check | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/neg/t2442.check b/tests/untried/neg/t2442.check new file mode 100644 index 000000000..9ff0b4466 --- /dev/null +++ b/tests/untried/neg/t2442.check @@ -0,0 +1,11 @@ +t2442.scala:4: warning: match may not be exhaustive. +It would fail on the following input: THREE + def f(e: MyEnum) = e match { + ^ +t2442.scala:11: warning: match may not be exhaustive. +It would fail on the following input: BLUE + def g(e: MySecondEnum) = e match { + ^ +error: No warnings can be incurred under -Xfatal-warnings. +two warnings found +one error found |