-
Notifications
You must be signed in to change notification settings - Fork 62
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
Missing arity check for BIFs #50
Comments
If I compile
And try to run foo:main(), then I get
However, in BEAM I get
So, it's close but no cigar ... we need to throw |
Commit 2a0da3f improves this |
The behaviour I described was in the shell... so probably an apply() issue. |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To reproduce:
(fun erlang:integer_to_list/1)(1,0).
Expected behaviour:
** exception error: integer_to_list/1 called with two arguments
Observed behaviour:
Expression evaluates to "1".
The text was updated successfully, but these errors were encountered: