summaryrefslogblamecommitdiff
path: root/test/files/run/newTags.scala
blob: c5199d4e55d8442fcef521b2927e5022694cc655 (plain) (tree)
1
2
3
4
5
6
7
8
                                                  


                                             
                               
                            
                         
                                               


                          
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]]
}