summaryrefslogtreecommitdiff
path: root/test/files/neg/bug4302.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/bug4302.check')
-rw-r--r--test/files/neg/bug4302.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/bug4302.check b/test/files/neg/bug4302.check
new file mode 100644
index 0000000000..ca33748cfd
--- /dev/null
+++ b/test/files/neg/bug4302.check
@@ -0,0 +1,4 @@
+bug4302.scala:2: error: abstract type T in type T is unchecked since it is eliminated by erasure
+ def hasMatch[T](x: AnyRef) = x.isInstanceOf[T]
+ ^
+one error found