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

Array#product does not coerce incoming arguments properly #1963

Closed
headius opened this Issue Sep 10, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@headius
Copy link
Member

commented Sep 10, 2014

The following code should work. See #1962 for a similar case.

class Foo
  def method_missing(name, *args)
    [3,4]
  end
end

[1,2].product(Foo.new)

This is the cause of the second bunch of errors in this Travis CI job (thanks @rkh): https://travis-ci.org/travis-ci/travis-yaml/builds/34826144

@headius headius self-assigned this Sep 10, 2014

@headius headius added this to the JRuby 1.7.16 milestone Sep 10, 2014

@headius

This comment has been minimized.

Copy link
Member Author

commented Sep 10, 2014

Fixed in 2b0c320. Specs in d4eb922.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.