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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not autosplat when calling procs that accept rest and keywords #2502

Merged

Conversation

jeremyevans
Copy link
Contributor

When providing a single array to a block that takes a splat, pass the
array as one argument of the splat instead of as the splat itself,
even if the block also accepts keyword arguments. Previously, this
behavior was only used for blocks that did not accept keywords.

@jeremyevans jeremyevans force-pushed the no-autosplat-proc-rest-keyword-16166 branch 2 times, most recently from 87923ff to aafeb4c Compare March 9, 2020 00:44
When providing a single array to a block that takes a splat, pass the
array as one argument of the splat instead of as the splat itself,
even if the block also accepts keyword arguments.  Previously, this
behavior was only used for blocks that did not accept keywords.

Implements [Feature#16166]
@jeremyevans jeremyevans force-pushed the no-autosplat-proc-rest-keyword-16166 branch from aafeb4c to 8b3d2d0 Compare March 9, 2020 02:54
@jeremyevans jeremyevans merged commit f4394bb into ruby:master Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant