blob: 334ee714befba9c3302c696b03e60f75c84f8404 (
plain) (
tree)
|
|
import scala.reflect.macros.{Context => Ctx}
object Impls {
def fooNullary(c: Ctx) = {
import c.universe._
val body = Apply(Select(Ident(definitions.PredefModule), newTermName("println")), List(Literal(Constant("it works"))))
c.Expr[Unit](body)
}
def fooEmpty(c: Ctx)() = fooNullary(c)
}
|