blob: 7351f7e3058387391ac77d6b5fb16fbb4d14d285 (
plain) (
tree)
|
|
object Test extends App {
def arrayTagIsnotManifest[T: ArrayTag] = {
println(manifest[T])
}
arrayTagIsnotManifest[Int]
arrayTagIsnotManifest[String]
arrayTagIsnotManifest[Array[Int]]
def classTagIsnotManifest[T: ClassTag] = {
println(manifest[T])
}
classTagIsnotManifest[Int]
classTagIsnotManifest[String]
classTagIsnotManifest[Array[Int]]
}
|