blob: 5c326549d803ecff6e6cb35b5740ee115889ed10 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
object Test extends App {
def erasureTagIsnotManifest[T: ErasureTag] = {
println(manifest[T])
}
erasureTagIsnotManifest[Int]
erasureTagIsnotManifest[String]
erasureTagIsnotManifest[Array[Int]]
}
|