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