blob: c5dc2a808077c9fe806fedd3afc117fa342b4d64 (
plain) (
tree)
|
|
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
|