File tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2178,17 +2178,17 @@ object SymDenotations {
2178
2178
recur(packageObjs, super .memberNames(keepOnly))
2179
2179
}
2180
2180
2181
- /** If another symbol with the same name is entered, unlink it,
2182
- * and, if symbol is a package object, invalidate the packageObj cache.
2181
+ /** If another symbol with the same name is entered, unlink it.
2182
+ * If symbol is a package object, invalidate the packageObj cache.
2183
2183
* @return `sym` is not already entered
2184
2184
*/
2185
2185
override def proceedWithEnter (sym : Symbol , mscope : MutableScope )(implicit ctx : Context ): Boolean = {
2186
2186
val entry = mscope.lookupEntry(sym.name)
2187
2187
if (entry != null ) {
2188
2188
if (entry.sym == sym) return false
2189
2189
mscope.unlink(entry)
2190
- if (sym.name.isPackageObjectName) packageObjsRunId = NoRunId
2191
2190
}
2191
+ if (sym.name.isPackageObjectName) packageObjsRunId = NoRunId
2192
2192
true
2193
2193
}
2194
2194
You can’t perform that action at this time.
0 commit comments