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

object Impls {
  def foo[T: c.TypeTag, U: c.TypeTag](c: Ctx)(x: c.Expr[U]) = {
    import c.universe._
    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))))
    c.Expr[Unit](body)
  }
}