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

object Impls {
  def foo[T, U: c.AbsTypeTag, V](c: Ctx)(implicit T: c.AbsTypeTag[T], V: c.AbsTypeTag[V]): c.Expr[Unit] = {
    import c.universe._
    Block(List(
      Apply(Select(Ident(definitions.PredefModule), newTermName("println")), List(Literal(Constant(T.toString)))),
      Apply(Select(Ident(definitions.PredefModule), newTermName("println")), List(Literal(Constant(implicitly[c.AbsTypeTag[U]].toString)))),
      Apply(Select(Ident(definitions.PredefModule), newTermName("println")), List(Literal(Constant(V.toString))))),
      Literal(Constant(())))
  }
}