File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,13 @@ class SymbolLoaders {
166
166
override def lookupEntry (name : Name )(implicit ctx : Context ): ScopeEntry = {
167
167
val mangled = name.mangled
168
168
val e = super .lookupEntry(mangled)
169
- if (e != null ) e
169
+ if (e != null ) {
170
+ // Eagerly update symbol's name to undecoded name to avpid the name
171
+ // spearding to types.
172
+ if (name.toSimpleName != mangled && e.sym.initialDenot.name == mangled)
173
+ e.sym.initialDenot.name = name
174
+ e
175
+ }
170
176
else if (_sourceModule.initialDenot.name == nme.scala_ && _sourceModule == defn.ScalaPackageVal &&
171
177
name.isTypeName && name.isSyntheticFunction)
172
178
newScopeEntry(defn.newFunctionNTrait(name.asTypeName))
You can’t perform that action at this time.
0 commit comments