Actions
Bug #20751
closedRegression in Prism related to use of return in default argument values
Bug #20751:
Regression in Prism related to use of return in default argument values
Description
All versions of parse.y dating at least back to Ruby 1.8.7, and Prism in both Ruby 3.3.5 and 3.4.0preview1, correctly parses this code:
The master branch, unless --parser=parse.y is used, now considers this a SyntaxError:
Actions