Skip to content

Commit b745044

Browse files
committed
Merge pull request #426 from xeno-by/master
avoids a deprecation warning on Scala 2.11
2 parents 2197e3b + ae9d90a commit b745044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

overviews/macros/annotations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ that the enclosing annotation is a macro annotation).
4242

4343
@compileTimeOnly("enable macro paradise to expand macro annotations")
4444
class identity extends StaticAnnotation {
45-
def macroTransform(annottees: Any*) = macro ???
45+
def macroTransform(annottees: Any*): Any = macro ???
4646
}
4747

4848
First of all, note the `@compileTimeOnly` annotation. It is not mandatory, but is recommended to avoid confusion.

0 commit comments

Comments
 (0)