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