blob: a565849aa9153bd31fe8e8470195a17e70272248 (
plain) (
tree)
|
|
class foo(val bar: String) extends 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")
}
|