summaryrefslogtreecommitdiff
path: root/test/files/run/macro-reify-eval-outside-reify/Impls_Macros_1.scala
blob: 13b603d610233c96df616104a9db0b8f4cf9564c (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]) = c.literal(x.eval)
}

object Macros {
  def foo(x: Int) = macro Impls.foo
}