File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,10 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
78
78
}
79
79
80
80
override def nameString (name : Name ): String =
81
- if ctx.settings.YdebugNames .value then name.debugString
81
+ def strippedName = if printDebug then name else name.stripModuleClassSuffix
82
+ if ctx.settings.YdebugNames .value then strippedName.debugString
82
83
else if name.isTypeName && name.is(WildcardParamName ) && ! printDebug then " _"
83
- else super .nameString(name )
84
+ else super .nameString(strippedName )
84
85
85
86
override protected def simpleNameString (sym : Symbol ): String =
86
87
nameString(if (ctx.property(XprintMode ).isEmpty) sym.initial.name else sym.name)
Original file line number Diff line number Diff line change 11
11
25 | export printUnit.bitmap // error: no eligible member
12
12
| ^
13
13
| non-private given instance bitmap in class Copier refers to private value printUnit
14
- | in its type signature => Copier.this.printUnit.bitmap$
14
+ | in its type signature => Copier.this.printUnit.bitmap
15
15
-- [E120] Naming Error: tests/neg/exports.scala:23:33 ------------------------------------------------------------------
16
16
23 | export printUnit.{stat => _, _} // error: double definition
17
17
| ^
You can’t perform that action at this time.
0 commit comments