-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flow] add a new IndexContext case to Type.enclosing_context
Summary: * Makes the context of `x` in `o[x]` a special kind of context (`IndexContext`). This flag is now passed alongside the existing conditional context(`cond` parameter), so that it can be used under natural inference to infer more precise types for primitive literals. * Propagates `cond` flag to a few more expressions in statement.ml (e.g. pattern match cases) Changelog: [internal] Reviewed By: SamChou19815 Differential Revision: D70676102 fbshipit-source-id: e29765b12473dbdbf7e33d5fb3f3d245b7787312
- Loading branch information
1 parent
501116a
commit 09974ff
Showing
6 changed files
with
30 additions
and
16 deletions.
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
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
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