Skip to content

Commit 9156cbe

Browse files
committed
Merge pull request #18 from lrytz/typo
call setSymbol only on outermost Apply for multi-arg-list applications
2 parents 3efdcf1 + 6f7fd4f commit 9156cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scala/async/AnfTransform.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ private[async] final case class AnfTransform[C <: Context](c: C) {
209209
}
210210
}
211211
val core = if (targs.isEmpty) simpleFun else TypeApply(simpleFun, targs)
212-
val newApply = argExprss.foldLeft(core)(Apply(_, _).setSymbol(tree.symbol))
212+
val newApply = argExprss.foldLeft(core)(Apply(_, _)).setSymbol(tree.symbol)
213213
funStats ++ argStatss.flatten.flatten :+ attachCopy(tree)(newApply)
214214
case Block(stats, expr) =>
215215
inline.transformToList(stats :+ expr)

0 commit comments

Comments
 (0)