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