Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mcimadamore committed Jun 13, 2024
1 parent 5638e0b commit 7e82cce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4040,7 +4040,7 @@ JCExpression lambda() {
slam.pos = tree.pos;
slam.wasMethodReference = true;
if (receiverExpression != null) {
// save the receiver expression in the desugared lambda
// use a let expression so that the receiver expression is evaluated eagerly
return make.at(tree.pos).LetExpr(
make.VarDef(rcvr, translate(receiverExpression)), slam).setType(tree.type);
} else {
Expand Down

0 comments on commit 7e82cce

Please sign in to comment.