blob: 5c5ec2c999101f6153b14986e3a856953959c7ca (
plain) (
tree)
|
|
import scala.reflect.makro.{Context => Ctx}
object Impls {
def foo(c: Ctx)(x: c.Expr[Int]) = x
def refToFoo(dummy: Int) = macro refToFoo_impl
def refToFoo_impl(c: Ctx)(dummy: c.Expr[Int]) = {
import c.mirror._
val body = Select(Ident(newTermName("Impls")), newTermName("foo"))
Expr[Int](body)
}
}
|