Skip to content

Commit 67bb2f7

Browse files
committed
SelectStatic: also normalise TypeApply nodes.
1 parent debc5fd commit 67bb2f7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/dotty/tools/dotc/transform/SelectStatic.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,16 @@ class SelectStatic extends MiniPhaseTransform with IdentityDenotTransformer { th
4646
Block(stats, Select(qual, nm))
4747
case Apply(Block(stats, qual), nm) =>
4848
Block(stats, Apply(qual, nm))
49+
case TypeApply(Block(stats, qual), nm) =>
50+
Block(stats, TypeApply(qual, nm))
4951
case _ => t
5052
}
5153

5254
override def transformApply(tree: tpd.Apply)(implicit ctx: Context, info: TransformerInfo): tpd.Tree = {
5355
normalize(tree)
5456
}
57+
58+
override def transformTypeApply(tree: tpd.TypeApply)(implicit ctx: Context, info: TransformerInfo): tpd.Tree = {
59+
normalize(tree)
60+
}
5561
}

0 commit comments

Comments
 (0)