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

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