Skip to content

Commit 692cbe5

Browse files
committed
Fix printing annotations in trees
1 parent d921598 commit 692cbe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
607607
case tree: Template =>
608608
toTextTemplate(tree)
609609
case Annotated(arg, annot) =>
610-
toTextLocal(arg) ~~ toText(annot)
610+
toTextLocal(arg) ~~ annotText(annot.symbol.enclosingClass, annot)
611611
case EmptyTree =>
612612
"<empty>"
613613
case TypedSplice(t) =>

0 commit comments

Comments
 (0)