Skip to content

Commit

Permalink
Candidate fix that appears to work, but I'm not certain it makes sense
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Jan 8, 2025
1 parent dcdb59b commit b2f5e3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ private void pushLambdaExpressionLocalsIntoMethodScope(LambdaExpression x,
if (syntheticArguments != null) {
MethodScope scope = x.getScope();
for (SyntheticArgumentBinding sa : syntheticArguments) {
VariableBinding[] path = scope.getEmulationPath(sa.actualOuterLocalVariable);
VariableBinding[] path = scope.getEmulationPath(sa);
assert path.length == 1 && path[0] instanceof LocalVariableBinding;
JParameter param = it.next();
curMethod.locals.put((LocalVariableBinding) path[0], param);
Expand Down

0 comments on commit b2f5e3a

Please sign in to comment.