We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cbf29e commit 5a36e2fCopy full SHA for 5a36e2f
src/dotty/tools/dotc/ast/tpd.scala
@@ -642,7 +642,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
642
case tree: DefTree =>
643
val sym = tree.symbol
644
val prevDenot = sym.denot(ctx.withPhase(trans))
645
- if (prevDenot.validFor.containsPhaseId(trans.id) && prevDenot.owner == from) {
+ if (prevDenot.owner == from) {
646
val d = sym.copySymDenotation(owner = to)
647
d.installAfter(trans)
648
d.transformAfter(trans, d => if (d.owner eq from) d.copySymDenotation(owner = to) else d)
0 commit comments