Skip to content

Commit 750b46e

Browse files
committed
Remove outdated re-sugaring
1 parent 19e47b7 commit 750b46e

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)