summaryrefslogtreecommitdiff
path: root/test/files/neg/t1872.check
blob: c5dc2a808077c9fe806fedd3afc117fa342b4d64 (plain) (blame)
1
2
3
4
5
6
7
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