Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ruby] fix: double splat issue #3806

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tuxology
Copy link
Contributor

@tuxology tuxology commented Nov 7, 2023

Ruby allows using double splat arguments without the attached hash for whatever reasons 馃檮 Recently saw this in production code where the parser/frontend breaks. For example this is valid function definition:

def foo(**)
  bar(**)
end

While I've just added a test for now, there is a fix needed in both the new as well as old parsers

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.

None yet

1 participant