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