blob: 9bc1f32e865060a871d2a0e5c55d7f2d9aae76c9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
object Test extends App {
def classManifestIspartiallyTypeTag[T: ClassManifest] = {
println(typeTag[T].tpe)
println(typeTag[T].erasure)
}
classManifestIspartiallyTypeTag[Int]
classManifestIspartiallyTypeTag[String]
classManifestIspartiallyTypeTag[Array[Int]]
}
|