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 52d6ac3 commit dcfebd8Copy full SHA for dcfebd8
src/dotty/tools/dotc/printing/PlainPrinter.scala
@@ -354,7 +354,8 @@ class PlainPrinter(_ctx: Context) extends Printer {
354
355
def toText(sym: Symbol): Text =
356
(kindString(sym) ~~ {
357
- if (hasMeaninglessName(sym)) simpleNameString(sym.owner) + idString(sym)
+ if (sym.isAnonymousClass) toText(sym.info.parents, " with ") ~ "{...}"
358
+ else if (hasMeaninglessName(sym)) simpleNameString(sym.owner) + idString(sym)
359
else nameString(sym)
360
}).close
361
0 commit comments