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

no argument checking is done on a lambda with no parameters #4175

Closed
robfors opened this Issue Dec 3, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@robfors
Copy link
Contributor

robfors commented Dec 3, 2018

CRuby:

(lambda {}).call(1) #=> ArgumentError: wrong number of arguments (given 1, expected 0)
(lambda {||}).call(1) #=> ArgumentError: wrong number of arguments (given 1, expected 0)

mruby:

(lambda {}).call(1) #=> nil
(lambda {||}).call(1) #=> nil

Tested on 26475d0.

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.