Skip to content

Commit

Permalink
PostTyper: also recreate Select nodes if signature changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkDimius committed May 24, 2017
1 parent 37128e4 commit cb362f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler/src/dotty/tools/dotc/transform/PostTyper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,10 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisTran
Checking.checkRealizable(qual.tpe, qual.pos.focus)
super.transform(tree)
}
else
transformSelect(paramFwd.adaptRef(fixSignature(tree)), Nil)
else {
super.transform(transformSelect(paramFwd.adaptRef(fixSignature(tree)), Nil))
}

case tree: Super =>
if (ctx.owner.enclosingMethod.isInlineMethod)
ctx.error(em"super not allowed in inline ${ctx.owner}", tree.pos)
Expand Down

0 comments on commit cb362f9

Please sign in to comment.