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