aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/macro-term-declared-in-annotation/Macros_2.scala
blob: 40d71c62fb131c8b41f97856ef255b0172a4cf07 (plain) (blame)
1
2
3
4
5
6
7
8
class foo(val bar: String) extends annotation.StaticAnnotation

object Api {
  // foo in ann must have a different name
  // otherwise, we get bitten by https://issues.scala-lang.org/browse/SI-5544
  @foo({def fooInAnn = macro Impls.foo; fooInAnn})
  def foo = println("it works")
}