1 2 3 4 5 6 7 8 9 10 11
import scala.reflect.runtime.universe._ object Test extends App { def weakTypeTagIsnotManifest[T: WeakTypeTag] = { println(manifest[T]) } weakTypeTagIsnotManifest[Int] weakTypeTagIsnotManifest[String] weakTypeTagIsnotManifest[Array[Int]] }