summaryrefslogtreecommitdiff
path: root/test/files/neg/anyval-sealed.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/anyval-sealed.check')
-rw-r--r--test/files/neg/anyval-sealed.check12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/neg/anyval-sealed.check b/test/files/neg/anyval-sealed.check
new file mode 100644
index 0000000000..48a457b496
--- /dev/null
+++ b/test/files/neg/anyval-sealed.check
@@ -0,0 +1,12 @@
+anyval-sealed.scala:2: error: match is not exhaustive!
+missing combination Byte
+missing combination Char
+missing combination Double
+missing combination Float
+missing combination Long
+missing combination Short
+missing combination Unit
+
+ def f(x: AnyVal) = x match {
+ ^
+one error found