diff options
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/NameOps.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/NameOps.scala b/compiler/src/dotty/tools/dotc/core/NameOps.scala index ac4b296bb..27bd3a05e 100644 --- a/compiler/src/dotty/tools/dotc/core/NameOps.scala +++ b/compiler/src/dotty/tools/dotc/core/NameOps.scala @@ -100,9 +100,9 @@ object NameOps { * it is also called from the backend. */ def stripModuleClassSuffix: N = likeSpaced { - val name1 = + val semName = if (name.isSimple && name.endsWith("$")) name.unmangleClassName else name - name.exclude(ModuleClassName) + semName.exclude(ModuleClassName) } /** If flags is a ModuleClass but not a Package, add module class suffix */ |