blob: 1f934e0bba2f41129e925b05c99e2ac9cd8e9d29 (
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]]
}
|