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