diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2016-08-09 17:42:42 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2016-08-09 17:42:42 +0200 |
commit | 67bb2f74a596120fd3408769c4fdd52063f964b3 (patch) | |
tree | ec180bbc9ec936966631e86ba035e223fea94553 /src | |
parent | debc5fd624526747712114293a1e7b7b6bc3730a (diff) | |
download | dotty-67bb2f74a596120fd3408769c4fdd52063f964b3.tar.gz dotty-67bb2f74a596120fd3408769c4fdd52063f964b3.tar.bz2 dotty-67bb2f74a596120fd3408769c4fdd52063f964b3.zip |
SelectStatic: also normalise TypeApply nodes.
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/transform/SelectStatic.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/transform/SelectStatic.scala b/src/dotty/tools/dotc/transform/SelectStatic.scala index c6d47df16..a517b1856 100644 --- a/src/dotty/tools/dotc/transform/SelectStatic.scala +++ b/src/dotty/tools/dotc/transform/SelectStatic.scala @@ -46,10 +46,16 @@ class SelectStatic extends MiniPhaseTransform with IdentityDenotTransformer { th Block(stats, Select(qual, nm)) case Apply(Block(stats, qual), nm) => Block(stats, Apply(qual, nm)) + case TypeApply(Block(stats, qual), nm) => + Block(stats, TypeApply(qual, nm)) case _ => t } override def transformApply(tree: tpd.Apply)(implicit ctx: Context, info: TransformerInfo): tpd.Tree = { normalize(tree) } + + override def transformTypeApply(tree: tpd.TypeApply)(implicit ctx: Context, info: TransformerInfo): tpd.Tree = { + normalize(tree) + } } |