blob: 77a95048fd529db1b831a8eec5dccabdd3a7f9d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import scala.reflect.runtime.universe._
object Test extends App {
def absTypeTagIsnotManifest[T: AbsTypeTag] = {
println(manifest[T])
}
absTypeTagIsnotManifest[Int]
absTypeTagIsnotManifest[String]
absTypeTagIsnotManifest[Array[Int]]
}
|