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