blob: c5199d4e55d8442fcef521b2927e5022694cc655 (
plain) (
tree)
|
|
import scala.reflect.api.{Universe => ApiUniverse}
import scala.reflect.runtime.{universe => ru}
object Test extends App {
println(ru.typeOf[List[Int]])
def foo[T: ru.TypeTag] = {
println(ru.typeOf[T])
println(implicitly[ApiUniverse#TypeTag[T]])
}
foo[Map[String, String]]
}
|