We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51050f9 commit f0e0117Copy full SHA for f0e0117
compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala
@@ -940,7 +940,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
940
tree.hasType && tree.symbol.exists && ctx.settings.YprintSyms.value
941
942
protected def nameIdText[T <: Untyped](tree: NameTree[T]): Text =
943
- if (tree.hasType && tree.symbol.exists) {
+ if (tree.hasType && tree.symbol.exists && tree.symbol.isType == tree.name.isTypeName) {
944
val str = nameString(tree.symbol)
945
tree match {
946
case tree: RefTree => withPos(str, tree.sourcePos)
0 commit comments