Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ ruby28.y: reject assignment to numparam. (#725)
This commit tracks upstream commit ruby/ruby@d47e124.
- Loading branch information
1 parent
d0610d3
commit 61f5fb4
Showing
4 changed files
with
216 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ def has_ordinary_params? | |
end | ||
|
||
def has_numparams? | ||
top > 0 | ||
top && top > 0 | ||
end | ||
|
||
def register(numparam) | ||
|
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