-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: When analyzing `e1 or e2`, we should only consider `e1`'s type in the case where the narrowing effects of `e1` hold. More concretely, when analyzing `x is not None or e2`, the result will only evaluate to `x is not None` if the condition holds, so we need to ensure that we're considering that effect when widening the type. The only expression that gets returned unconditionally is the last expression in an or, so we shouldn't apply any effects for those, but still need to build the effect as it gets consumed. Reviewed By: DinoV Differential Revision: D29272909 fbshipit-source-id: b11f221
- Loading branch information
1 parent
3182eef
commit 71e2a28
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters