Skip to content

Throw syntax error for endless method with []=#3377

Merged
tenderlove merged 1 commit intomainfrom
fix-21010
Jan 7, 2025
Merged

Throw syntax error for endless method with []=#3377
tenderlove merged 1 commit intomainfrom
fix-21010

Conversation

@eileencodes
Copy link
Member

Prism shoudld throw a syntax error for endless methods when the method name uses brackets. Previously it would not. This matches the behavior of parse.y.

Fixes https://bugs.ruby-lang.org/issues/21010

Prism shoudld throw a syntax error for endless methods when the method
name uses brackets. Previously it would not. This matches the behavior
of parse.y.

Fixes https://bugs.ruby-lang.org/issues/21010
@tenderlove tenderlove merged commit 67c83af into main Jan 7, 2025
57 checks passed
@tenderlove tenderlove deleted the fix-21010 branch January 7, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants