Skip to content

Commit 40a2946

Browse files
oderskysmarter
andauthored
Update compiler/src/dotty/tools/dotc/transform/LetOverApply.scala
Co-authored-by: Guillaume Martres <[email protected]>
1 parent 7ce3d5b commit 40a2946

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/src/dotty/tools/dotc/transform/LetOverApply.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import Contexts.Context, Symbols._, Decorators._
77
import MegaPhase._
88
import ast.Trees._
99

10-
/** Rewrite `{ stats; expr}.f(args) }` to `{ stats; expr.f(args) }` before
11-
* proceeding, but leave closures alone. This is necessary to be able to
10+
/** Rewrite `{ stats; expr}.f(args)` to `{ stats; expr.f(args) }` and
11+
* `{ stats; expr }(args)` to `{ stats; expr(args) }` before proceeding,
12+
* but leave closures alone. This is necessary to be able to
1213
* collapse applies of IFTs (this is done in Erasure).
1314
*/
1415
class LetOverApply extends MiniPhase:

0 commit comments

Comments
 (0)