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

Create tests for failing type checks #19

Open
turion opened this issue Dec 8, 2020 · 0 comments
Open

Create tests for failing type checks #19

turion opened this issue Dec 8, 2020 · 0 comments

Comments

@turion
Copy link
Contributor

turion commented Dec 8, 2020

There could be a test for functions that should not typecheck. For example:

@spec foo(:foo | :bar) :: :foo
def foo(:foo) do
  :foo
end

This fails because the :bar case isn't matched, which is awesome. It would be great if it was possible to add this to to the tests so it isn't accidentally broken.

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

1 participant