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

Fix type inference for disjunctions with nullness #524

Merged

Conversation

mristin
Copy link
Contributor

@mristin mristin commented Aug 31, 2024

We extend the type inference to, correctly, consider the case with disjunctions (or) with nullness checks (is None).

For example, (A is None) or (A == 3) means that the first value in the disjunction (A is None) implies that A is non-null in the second value (A == 3).

We extend the type inference to, correctly, consider the case with
disjunctions (``or``) with nullness checks (``is None``).

For example, ``(A is None) or (A == 3)`` means that the first value in
the disjunction (``A is None``) implies that ``A`` is non-null in the
second value (``A == 3``).
@mristin mristin merged commit b14237b into main Aug 31, 2024
5 checks passed
@mristin mristin deleted the mristin/Fix-dereferencing-optional-values-in-arguments-of-C++ branch August 31, 2024 11:13
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

Successfully merging this pull request may close these issues.

1 participant