summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-invalidimpl-f/Impls_1.scala
blob: 0e4da86d224aaf0627ee79ed3d745101f5acb0cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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)
}