1 2 3 4 5 6 7 8 9 10 11 12 13
import scala.reflect.macros.blackbox.Context object Impls { def foo(c: Context) = { import c.universe._ val body = Ident(TermName("IDoNotExist")) c.Expr[Int](body) } } object Macros { def foo = macro Impls.foo }