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

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