Skip to content

Commit d09600d

Browse files
Merge pull request #10111 from dotty-staging/remove-outdated-re-sugaring
Remove outdated re-sugaring
2 parents 6a73701 + 750b46e commit d09600d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
376376
else if (name.isTypeName) typeText(txt)
377377
else txt
378378
case tree @ Select(qual, name) =>
379-
if (!printDebug && tree.hasType && tree.symbol.isTypeSplice) typeText("${") ~ toTextLocal(qual) ~ typeText("}")
380-
else if (qual.isType) toTextLocal(qual) ~ "#" ~ typeText(toText(name))
379+
if (qual.isType) toTextLocal(qual) ~ "#" ~ typeText(toText(name))
381380
else toTextLocal(qual) ~ ("." ~ nameIdText(tree) provided (name != nme.CONSTRUCTOR || printDebug))
382381
case tree: This =>
383382
optDotPrefix(tree) ~ keywordStr("this") ~ idText(tree)

0 commit comments

Comments
 (0)