WeakTypeTag v. TypeTag
问题 In the REPL, I'm writing out the examples from Reflection - TypeTags and Manifests. I'm confused by the difference between WeakTypeTag and TypeTag . scala> import scala.reflect.runtime.universe._ import scala.reflect.runtime.universe._ TypeTag scala> def paramInfo[T](x: T)(implicit tag: TypeTag[T]): Unit = { | val targs = tag.tpe match { case TypeRef(_, _, args) => args } | println(s"type tag of $x has type arguments $targs") | } paramInfo: [T](x: T)(implicit tag: reflect.runtime.universe