blob: ec69c1460a785a3c4dffd114a23c81c4c1c6e2a0 (
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]]
}
|