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

object Impls {
  def foo(c: Ctx)(x: c.Expr[Int]) = {
    import c.mirror._
    val body = Apply(Select(Ident(definitions.PredefModule), newTermName("println")), List(x.tree))
    Expr[Unit](body)
  }
}