summaryrefslogtreecommitdiff
path: root/test/files/run/macro-reflective-mamd-normal-mi/Impls_1.scala
blob: 4261a6d45d0516c961924d1b6d9eeb542ada73eb (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(x.tree, TermName("$plus")), List(Literal(Constant(1))))
    c.Expr[Int](body)
  }
}