summaryrefslogtreecommitdiff
path: root/test/files/neg/bug4302.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-03-20 05:24:23 +0000
committerPaul Phillips <paulp@improving.org>2011-03-20 05:24:23 +0000
commita30ae005c5965fa65d05b16718e50c802d969312 (patch)
tree198a07e1ea14fcfc773a9571d1fe57815599a6de /test/files/neg/bug4302.check
parent36ac83da7fb1556416fc4c5e86ceac69adefc6c8 (diff)
downloadscala-a30ae005c5965fa65d05b16718e50c802d969312.tar.gz
scala-a30ae005c5965fa65d05b16718e50c802d969312.tar.bz2
scala-a30ae005c5965fa65d05b16718e50c802d969312.zip
Restored erasure warning for isInstanceOf tests.
no review.
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