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 17b1995 commit dee06a5Copy full SHA for dee06a5
compiler/src/dotty/tools/dotc/ast/tpd.scala
@@ -629,7 +629,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
629
case tree: DefTree =>
630
val sym = tree.symbol
631
val prevDenot = sym.denot(ctx.withPhase(trans))
632
- if (prevDenot.owner == from) {
+ if (prevDenot.effectiveOwner == from.skipWeakOwner) {
633
val d = sym.copySymDenotation(owner = to)
634
d.installAfter(trans)
635
d.transformAfter(trans, d => if (d.owner eq from) d.copySymDenotation(owner = to) else d)
0 commit comments