summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-invalidimpl-f/Impls_1.scala
blob: 334ee714befba9c3302c696b03e60f75c84f8404 (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), newTermName("println")), List(Literal(Constant("it works"))))
    c.Expr[Unit](body)
  }

  def fooEmpty(c: Ctx)() = fooNullary(c)
}