blob: 882867fcabe2e728c8fb9b6595f5489eba82f96d (
plain) (
tree)
|
|
import scala.reflect.makro.{Context => Ctx}
object Impls {
def foo(c: Ctx): c.Expr[Int] = {
import c.mirror._
Literal(Constant("42"))
}
}
object Macros {
def foo: Int = macro Impls.foo
}
|