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.
1 parent 36740bf commit 5323e4dCopy full SHA for 5323e4d
library/src/scala/tasty/reflect/Printers.scala
@@ -1576,7 +1576,10 @@ trait Printers
1576
val Annotation(ref, args) = annot
1577
this += "@"
1578
printTypeTree(ref)
1579
- inParens(printTrees(args, ", "))
+ if (args.isEmpty)
1580
+ this
1581
+ else
1582
+ inParens(printTrees(args, ", "))
1583
}
1584
1585
def printDefAnnotations(definition: Definition): Buffer = {
0 commit comments