diff options
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index 7eea9fd64..8f7725fbe 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -912,7 +912,10 @@ object SymDenotations { } if (this is PackageClass) { // replace existing symbols val entry = mscope.lookupEntry(sym.name) - if (entry != null) mscope.unlink(entry) + if (entry != null) { + mscope.unlink(entry) + entry.sym.denot = sym.denot // to avoid stale symbols + } } mscope.enter(sym) |