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