File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import dotty.tools.dotc.transform.TreeTransforms._
13
13
/** Removes selects that would be compiled into GetStatic
14
14
* otherwise backend needs to be aware that some qualifiers need to be dropped.
15
15
* Similar transformation seems to be performed by flatten in nsc
16
- *
17
16
* @author Dmytro Petrashko
18
17
*/
19
18
class SelectStatic extends MiniPhaseTransform with IdentityDenotTransformer { thisTransform =>
@@ -43,7 +42,7 @@ class SelectStatic extends MiniPhaseTransform with IdentityDenotTransformer { th
43
42
44
43
private def normalize (t : Tree )(implicit ctx : Context ) = t match {
45
44
case Select (Block (stats, qual), nm) =>
46
- Block (stats, Select (qual, nm))
45
+ Block (stats, cpy. Select (t) (qual, nm))
47
46
case Apply (Block (stats, qual), nm) =>
48
47
Block (stats, Apply (qual, nm))
49
48
case TypeApply (Block (stats, qual), nm) =>
You can’t perform that action at this time.
0 commit comments