Skip to content

Commit cb362f9

Browse files
committed
PostTyper: also recreate Select nodes if signature changes.
1 parent 37128e4 commit cb362f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/src/dotty/tools/dotc/transform/PostTyper.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,10 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisTran
176176
Checking.checkRealizable(qual.tpe, qual.pos.focus)
177177
super.transform(tree)
178178
}
179-
else
180-
transformSelect(paramFwd.adaptRef(fixSignature(tree)), Nil)
179+
else {
180+
super.transform(transformSelect(paramFwd.adaptRef(fixSignature(tree)), Nil))
181+
}
182+
181183
case tree: Super =>
182184
if (ctx.owner.enclosingMethod.isInlineMethod)
183185
ctx.error(em"super not allowed in inline ${ctx.owner}", tree.pos)

0 commit comments

Comments
 (0)