blob: 01fbc4f09eeee16e34b1b84a4d13155053e4d647 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import scala.reflect.macros.BlackboxContext
object Macros {
def impl(c:BlackboxContext): c.Expr[Any] = {
import c.universe._
val selfTree = This(tpnme.EMPTY)
c.Expr[AnyRef](selfTree)
}
def foo: Any = macro impl
}
|