File tree 2 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/transform
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ class CollectNullableFields extends MiniPhase {
45
45
46
46
override def phaseName = CollectNullableFields .name
47
47
48
- /** CollectNullableFields records usages of by names */
49
-
50
48
/** Running after `ElimByName` to see by names as nullable types.
51
49
*
52
50
* We don't necessary need to run after `Getters`, but the implementation
Original file line number Diff line number Diff line change @@ -49,8 +49,10 @@ class ElimByName extends TransformByNameApply with InfoTransformer {
49
49
50
50
/** Map `tree` to `tree.apply()` is `ftree` was of ExprType and becomes now a function */
51
51
private def applyIfFunction (tree : Tree , ftree : Tree )(implicit ctx : Context ) =
52
- if (isByNameRef(ftree))
53
- ctx.atPhase(next) { implicit ctx => tree.select(defn.Function0_apply ).appliedToNone }
52
+ if (isByNameRef(ftree)) {
53
+ val tree0 = transformFollowing(tree)
54
+ ctx.atPhase(next) { implicit ctx => tree0.select(defn.Function0_apply ).appliedToNone }
55
+ }
54
56
else tree
55
57
56
58
override def transformIdent (tree : Ident )(implicit ctx : Context ): Tree =
You can’t perform that action at this time.
0 commit comments