blob: 5aa07e7f41eabb92924fd96f27e4dad2284a7f6b (
plain) (
tree)
|
|
import scala.reflect.macros.Context
object Macros {
def impl(c:Context): c.Expr[Any] = {
import c.universe._
val selfTree = This(c.enclosingImpl.symbol.asModule.moduleClass)
c.Expr[AnyRef](selfTree)
}
def foo: Any = macro impl
}
|