Skip to content

Ignore defguards in typecheck #12194

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

Closed
wants to merge 1 commit into from

Conversation

sabiwara
Copy link
Contributor

Close #10485

Note: I'm not sure it is such a good thing to automatically make all custom guards generated, maybe this should be opt-in? For instance, with a custom attribute, @mark_as_generated tuple_or_nil?

@josevalim
Copy link
Member

Correct. Marking everything as generated will also affect dialyzer. The current type implementation will eventually change, so I believe we should correct the issue only then. Thank you for the PR though. :)

@josevalim josevalim closed this Oct 13, 2022
@sabiwara sabiwara deleted the guard-warning branch October 13, 2022 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Incompatible type warning
2 participants