blob: 1ca3673ce4660f19c91b746409f6e80f454c8e54 (
plain) (
tree)
|
|
import scala.reflect.runtime.universe._
object Test extends App {
def weakTypeTagIsnotManifest[T: WeakTypeTag] = {
println(manifest[T])
}
weakTypeTagIsnotManifest[Int]
weakTypeTagIsnotManifest[String]
weakTypeTagIsnotManifest[Array[Int]]
}
|