-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Unknown error occurred: %FunctionClauseError{module: Dialyxir.Warnings.InvalidContract, function: :format_long, arity: 1, kind: nil, args: nil, clauses: nil} #525
Comments
This is a follow-up for:
PROBLEM: I noticed, that dialyzer/dyalixir doesn't do type-check or type inference for the function with hard mistakes, by example, the spec says - For example, NO ERROR:
BUT when I removed the
finally, I got an error:
|
👋 Ran into this one as well:
error:
The fix was simple, I had forgotten to adapt a spec where I switched from map to list of tuples:
Thanks for dialyxir! |
Environment
Current behavior
This function was intentionally implemented as-is, to test/verify dialyzer/dialyxir works, because there is another function that violates the spec, but dialyzer/dialyxir doesn't catch it at all for some reason.
Expected behavior
The text was updated successfully, but these errors were encountered: