-
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][match] Use InternalBinding for internal bindings, fixing match…
… refinement highlighting issue Summary: Use InternalBinding for internal bindings, fixing match refinement highlighting issue. Changelog: [internal] Reviewed By: SamChou19815, panagosg7 Differential Revision: D67830801 fbshipit-source-id: 68b5cbd80697b777b62ed8b8fe05b0e39ef2ee77
- Loading branch information
1 parent
b9cc018
commit 9022171
Showing
4 changed files
with
88 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[options] | ||
all=true | ||
experimental.pattern_matching_expressions=true | ||
dev_only.refinement_info_as_errors=true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Found 0 errors |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
declare const x: number; | ||
|
||
const e = match (x) { // OK: no refinement info on internal binding | ||
1: true, | ||
2 as const a: true, // OK: no refinement info on internal binding | ||
_: false, | ||
}; |