aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/macro-term-declared-in-annotation/Impls_1.scala
blob: c4bcfbc1ba4549e86e14907fa5c7f85a29190d4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import scala.reflect.macros.blackbox.Context

object Impls {
  def foo(c: Context) = {
    import c.{prefix => prefix}
    import c.universe._
    val printPrefix = Apply(Select(Ident(definitions.PredefModule), TermName("println")), List(Literal(Constant("prefix = " + prefix))))
    val body = Block(List(printPrefix), Literal(Constant("this is deprecated")))
    c.Expr[String](body)
  }
}