summaryrefslogtreecommitdiff
path: root/test/files/neg/t1872.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t1872.check')
-rw-r--r--test/files/neg/t1872.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t1872.check b/test/files/neg/t1872.check
index ef84ef79e0..c5dc2a8080 100644
--- a/test/files/neg/t1872.check
+++ b/test/files/neg/t1872.check
@@ -1,4 +1,8 @@
+t1872.scala:3: warning: fruitless type test: a value of type Int cannot also be a scala.util.Random
+ def f(x: Int) = x.isInstanceOf[util.Random]
+ ^
t1872.scala:3: error: isInstanceOf cannot test if value types are references.
def f(x: Int) = x.isInstanceOf[util.Random]
^
+one warning found
one error found