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