-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prism accepts foo[1]{ 2 } += 1
#1927
Comments
matzbot
pushed a commit
to ruby/ruby
that referenced
this issue
Nov 27, 2023
Fix ruby/prism#1925 Fix ruby/prism#1927 Previously pm_call_node_index_p does not check about a block argument correctly and is not used in parse_write to check an index call node. This commit fixes these problems. ruby/prism@92bab044ff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CRuby rejects
foo[1]{ 2 } += 1
, but Prism accepts it.Related PRs/issues: #1636, #1925
The text was updated successfully, but these errors were encountered: