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

etylizer: pass_tycheck:foo/1 categorization #5

Open
albsch opened this issue Jun 6, 2024 · 0 comments
Open

etylizer: pass_tycheck:foo/1 categorization #5

albsch opened this issue Jun 6, 2024 · 0 comments

Comments

@albsch
Copy link
Member

albsch commented Jun 6, 2024

Is listed as pass, but should fail, because X could be atom()?

All checkers agree that this should fail.

-spec foo(atom() | list()) -> integer().
foo(X) ->
    [ _ | _ ] = X,
    length(X). % X has type list() here
@albsch albsch changed the title etylizer: foo/1 categorization etylizer: pass_tycheck:foo/1 categorization Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant