We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2197e3b + ae9d90a commit b745044Copy full SHA for b745044
overviews/macros/annotations.md
@@ -42,7 +42,7 @@ that the enclosing annotation is a macro annotation).
42
43
@compileTimeOnly("enable macro paradise to expand macro annotations")
44
class identity extends StaticAnnotation {
45
- def macroTransform(annottees: Any*) = macro ???
+ def macroTransform(annottees: Any*): Any = macro ???
46
}
47
48
First of all, note the `@compileTimeOnly` annotation. It is not mandatory, but is recommended to avoid confusion.
0 commit comments