blob: 7351f7e3058387391ac77d6b5fb16fbb4d14d285 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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]]
}
|