blob: 3555118d62ddd1fd269c57a08955926fd11e1e9e (
plain) (
tree)
|
|
import scala.reflect.{ClassTag, classTag}
object Test extends App {
def classTagIsnotManifest[T: ClassTag] = {
println(manifest[T])
}
classTagIsnotManifest[Int]
classTagIsnotManifest[String]
classTagIsnotManifest[Array[Int]]
}
|