blob: 3c62725c427e838efd6595a9110ad522c36d6617 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
import scala.reflect.runtime.universe._
object Test extends App {
def fooTypeTag[T: TypeTag] = {
println(implicitly[AbsTypeTag[T]])
println(implicitly[AbsTypeTag[List[T]]])
}
fooTypeTag[Int]
}
|