aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t7984.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t7984.check')
-rw-r--r--tests/untried/neg/t7984.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/untried/neg/t7984.check b/tests/untried/neg/t7984.check
new file mode 100644
index 000000000..0cfd7d161
--- /dev/null
+++ b/tests/untried/neg/t7984.check
@@ -0,0 +1,6 @@
+t7984.scala:4: warning: non-variable type argument Int in type pattern List[Int] (the underlying of Test.this.ListInt) is unchecked since it is eliminated by erasure
+ case is: ListInt => is.head
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+one warning found
+one error found