blob: 391143c6e8a16160abb54f67ede0a9e1a85cbe7b (
plain) (
tree)
|
|
import scala.reflect.{ClassTag, classTag}
object Test extends App {
def classTagIsnotManifest[T: ClassTag] = {
println(manifest[T])
}
classTagIsnotManifest[Int]
classTagIsnotManifest[String]
classTagIsnotManifest[Array[Int]]
}
|