File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
343
343
val declsText =
344
344
if (trueDecls.isEmpty || ! ctx.settings.Ydebug .value) Text ()
345
345
else dclsText(trueDecls)
346
- tparamsText ~ " extends " ~ toTextParents(tp.parents) ~ " {" ~ selfText ~ declsText ~
346
+ tparamsText ~ " extends " ~ toTextParents(tp.parents) ~~ " {" ~ selfText ~ declsText ~
347
347
" } at " ~ preText
348
348
case mt : MethodType =>
349
349
toTextGlobal(mt)
@@ -424,7 +424,7 @@ class PlainPrinter(_ctx: Context) extends Printer {
424
424
425
425
def toText (sym : Symbol ): Text =
426
426
(kindString(sym) ~~ {
427
- if (sym.isAnonymousClass) toText (sym.info.parents, " with " ) ~ " {...}"
427
+ if (sym.isAnonymousClass) toTextParents (sym.info.parents) ~ ~ " {...}"
428
428
else if (hasMeaninglessName(sym)) simpleNameString(sym.owner) + idString(sym)
429
429
else nameString(sym)
430
430
}).close
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
212
212
case ErasedValueType (tycon, underlying) =>
213
213
return " ErasedValueType(" ~ toText(tycon) ~ " , " ~ toText(underlying) ~ " )"
214
214
case tp : ClassInfo =>
215
- return toTextParents(tp.parents) ~ " {...}"
215
+ return toTextParents(tp.parents) ~~ " {...}"
216
216
case JavaArrayType (elemtp) =>
217
217
return toText(elemtp) ~ " []"
218
218
case tp : AnnotatedType if homogenizedView =>
You can’t perform that action at this time.
0 commit comments