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
In meth(*foo, bar) both foo and bar are splatted #2260
Comments
Even more minimal repro, courtesy of @tsion:
|
Here's a few more curious cases that might make it easier to track this down:
|
I'm having exactly the same issue. This was particularly sneaky in my own code, as one of the non-splatted arguments was a
This is not an issue in MRI 1.9 and above. |
Here is an example of a CI failure I'm experiencing on rbx: https://travis-ci.org/whitequark/parser/jobs/6120901.
All of the failures follow the same pattern: a method of form
s(:foo, *bar, baz)
is called, where bothbar
andbaz
implement#to_a
; in particular,bar
is an Array andbaz
is an AST::Node which implements#to_a
, returning an Array.The problem is that both
bar
andbaz
are splatted, instead of justbar
.I also made a minimal repro here: https://github.com/whitequark/ast/blob/master/test/test_ast.rb#L112 and it also fails the same way: https://travis-ci.org/whitequark/ast/builds/6121338.
The text was updated successfully, but these errors were encountered: