blob: 82a7b7971df9d0e67cadfaa1120ebb9cc40fe901 (
plain) (
tree)
|
|
import scala.reflect.runtime.universe._
object Test extends App {
def fooTypeTag[T: AbsTypeTag] = {
println(implicitly[AbsTypeTag[T]])
println(implicitly[AbsTypeTag[List[T]]])
}
fooTypeTag[Int]
}
|