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