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

zsuper does not cope with n repeated _ well #4342

Closed
enebo opened this issue Nov 28, 2016 · 0 comments
Closed

zsuper does not cope with n repeated _ well #4342

enebo opened this issue Nov 28, 2016 · 0 comments
Labels
ir
Milestone

Comments

@enebo
Copy link
Member

@enebo enebo commented Nov 28, 2016

Given this script:

class A
  def foo(a, b, c)
    p a, b, c
  end
end

class B < A
  def foo(_, _, _)
    super
  end
end

B.new.foo(1, 2, 3)

we should print 1,2,3 but pre-fixed #4341 we would throw a 1 for 3 arity error and now we print out 3, 3, 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.