-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RuleBuilder#numberize_references
should check LHS and RHS for dupli…
…cation Before this commit, LHS is not included into check list of `candidates`. Therefore `$args` in the code below is valid reference and converted to the reference to LHS (`args`). This commit change it to check both of LHS and RHS when resolve the named reference, so that the code is reported as duplicated reference. ``` args : ... | args ',' arg_splat { $$ = rest_arg_append(p, $args, $arg_splat, &@$); } ; ```
- Loading branch information
Showing
2 changed files
with
116 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters