blob: e3911c1588832eefee50f1fda92f9acd7ec3c773 (
plain) (
tree)
|
|
import scala.reflect.runtime.universe._
import scala.reflect.{ClassTag, classTag}
object Test extends App {
def absTypeTagIsnotClassTag[T: AbsTypeTag] = {
println(classTag[T])
}
absTypeTagIsnotClassTag[Int]
absTypeTagIsnotClassTag[String]
absTypeTagIsnotClassTag[Array[Int]]
}
|