blob: 31e758e9a0b54c91d604b400d636997b839f9b1a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
import scala.reflect.makro.{Context => Ctx}
object Impls {
def foo(c: Ctx) = {
import c.universe._
val body = Apply(Select(Ident(definitions.PredefModule), newTermName("println")), List(Literal(Constant("it works"))))
c.Expr[Unit](body)
}
}
|