blob: 0d48ae5cd0f53c86944b6f0f1b0fbad68717a3b1 (
plain) (
tree)
|
|
import scala.reflect.runtime.universe._
import scala.reflect.ClassTag
object Test extends App {
def typeTagWithoutClassTagIsnotManifest[T: TypeTag] = {
println(manifest[T])
}
typeTagWithoutClassTagIsnotManifest[Int]
typeTagWithoutClassTagIsnotManifest[String]
typeTagWithoutClassTagIsnotManifest[Array[Int]]
}
|