aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t4302.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t4302.check')
-rw-r--r--tests/untried/neg/t4302.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/untried/neg/t4302.check b/tests/untried/neg/t4302.check
new file mode 100644
index 000000000..ea4872927
--- /dev/null
+++ b/tests/untried/neg/t4302.check
@@ -0,0 +1,6 @@
+t4302.scala:2: warning: abstract type T is unchecked since it is eliminated by erasure
+ def hasMatch[T](x: AnyRef) = x.isInstanceOf[T]
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+one warning found
+one error found