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

JRuby 1.7.24 Array#flatten does not permit argument #3755

Closed
rovf opened this issue Mar 22, 2016 · 1 comment
Closed

JRuby 1.7.24 Array#flatten does not permit argument #3755

rovf opened this issue Mar 22, 2016 · 1 comment

Comments

@rovf
Copy link

rovf commented Mar 22, 2016

Environment

jruby 1.7.24 (1.9.3p551) 2016-01-20 bd68d85 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_79-b15 +jit [Windows 7-amd64]

Expected Behavior

Since JRuby 1.7.24 is supposed to implement the language of Ruby 1.9.3, the expression [[1]].flatten(1) should evaluate to [1] (see the documentation of flatten).

Actual Behavior

ArgumentError: wrong number of arguments calling flatten (1 for 0)

@rovf
Copy link
Author

rovf commented Mar 22, 2016

The issue can be closed! I found that a Gem was the culprit: It replaced Array#flatten by its own version, which did not allow passing a parameter.

@enebo enebo added this to the Invalid or Duplicate milestone Mar 22, 2016
@enebo enebo closed this as completed Mar 22, 2016
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

No branches or pull requests

2 participants