summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-invalidusage-methodvaluesyntax/Impls_1.scala
blob: 8d7fdf3e8a6ef663059b6330b4ce1c4538972a17 (plain) (blame)
1
2
3
4
5
6
7
8
9
import scala.reflect.macros.{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)
  }
}