blob: 5d88c90ffdff8348caf7a7c0a75e9a098c43c3af (
plain) (
tree)
|
|
import scala.reflect.runtime.universe._
object Test extends App {
def weakTypeTagIsnotClassManifest[T: WeakTypeTag] = {
println(classManifest[T])
}
weakTypeTagIsnotClassManifest[Int]
weakTypeTagIsnotClassManifest[String]
weakTypeTagIsnotClassManifest[Array[Int]]
}
|