summaryrefslogtreecommitdiff
path: root/test/files/neg/t2442.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t2442.check')
-rw-r--r--test/files/neg/t2442.check9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/t2442.check b/test/files/neg/t2442.check
new file mode 100644
index 0000000000..714816fd62
--- /dev/null
+++ b/test/files/neg/t2442.check
@@ -0,0 +1,9 @@
+t2442.scala:4: error: match may not be exhaustive.
+It would fail on the following input: THREE
+ def f(e: MyEnum) = e match {
+ ^
+t2442.scala:11: error: match may not be exhaustive.
+It would fail on the following input: BLUE
+ def g(e: MySecondEnum) = e match {
+ ^
+two errors found