-
Notifications
You must be signed in to change notification settings - Fork 102
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
typecheck does not work with wrong arg count #1236
Comments
Reduced example (note, that I have annotated
Output:
|
Ah ... so it doesn't depend on using another module. I thought it did because that's the only place I noticed it in my pact work. Here's the repl version:
|
This seems to point to a discrepancy in the runtime tc vs the static tc. The expression
@jmcardon is going to get started reworking the typechecker, but I'll see if i can't track down the problem when I get back. |
Issue description
If I call a function in an external module with the wrong number of arguments, this won't be detected by the typechecker.
Steps to reproduce
bad-typecheck.pact
helper.pact
bad-typecheck.repl
Expected Behavior
The line
(typecheck "free.bad-typecheck")
should display the error that we callhelper
with the wrong numberof arguments.
The text was updated successfully, but these errors were encountered: