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

Find spec violation on functional parameters? #102

Open
constracti opened this issue Dec 9, 2016 · 0 comments
Open

Find spec violation on functional parameters? #102

constracti opened this issue Dec 9, 2016 · 0 comments
Assignees

Comments

@constracti
Copy link
Collaborator

Assuming the following erlang function

-spec f(fun(({any(), any()}) -> any()), tuple()) -> any().
f(F, X) -> F(X).

If the initial F is bug-free, do we want cuter to generate a function that will fail if applied to tuple that doesn't have two elements?

Note that such a tuple doesn't violate the type of X.

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

No branches or pull requests

2 participants