summaryrefslogtreecommitdiff
path: root/test/files/run/macro-expand-tparams-explicit/Impls_1.scala
blob: 957d8331fc7e9d8b977f73566ddd1d5b3743e60c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import scala.reflect.makro.{Context => Ctx}

object Impls {
  def foo[U: c.TypeTag](c: Ctx) = {
    import c.mirror._
    val U = implicitly[c.TypeTag[U]]
    val body = Apply(Select(Ident(definitions.PredefModule), newTermName("println")), List(Literal(Constant(U.toString))))
    Expr[Unit](body)
  }
}