We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e87a5d1 commit 817315eCopy full SHA for 817315e
compiler/src/dotty/tools/dotc/transform/ElimByName.scala
@@ -50,7 +50,11 @@ class ElimByName extends TransformByNameApply with InfoTransformer {
50
/** Map `tree` to `tree.apply()` is `ftree` was of ExprType and becomes now a function */
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 }
+ ctx.atPhase(next) { implicit ctx =>
54
+ transformFollowing(tree)
55
+ .select(defn.Function0_apply)
56
+ .appliedToNone
57
+ }
58
else tree
59
60
override def transformIdent(tree: Ident)(implicit ctx: Context): Tree =
0 commit comments