Skip to content

Commit

Permalink
[ruby/prism] Disallow *a&.x=0
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton authored and matzbot committed May 3, 2024
1 parent 4fbb208 commit 1af2dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prism/prism.c
Original file line number Diff line number Diff line change
Expand Up @@ -19355,7 +19355,7 @@ parse_expression_prefix(pm_parser_t *parser, pm_binding_power_t binding_power, b
if (match1(parser, PM_TOKEN_COMMA)) {
return parse_targets_validate(parser, splat, PM_BINDING_POWER_INDEX);
} else {
return parse_target_validate(parser, splat, false);
return parse_target_validate(parser, splat, true);
}
}
case PM_TOKEN_BANG: {
Expand Down

0 comments on commit 1af2dea

Please sign in to comment.