blob: 6b05eddf7653449c9703cd226a7c27d0a81dd32a (
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]]
}
|