blob: 071c3ff25f5cb58f32b315cc5c9f66f412121b35 (
plain) (
tree)
|
|
import scala.reflect.runtime.universe._
import scala.reflect.ClassTag
import internal._
object Test extends App {
def typeTagIsManifest[T: TypeTag : ClassTag] = {
println(manifest[T])
}
typeTagIsManifest[Int]
typeTagIsManifest[String]
typeTagIsManifest[Array[Int]]
}
|