-
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] make EPropNotReadable ReactDeepReadOnly deferred_in_speculation
Summary: In ``` component Foo(arr: Array<number>) { arr.sort((a, b) => { return 1; }); return null; } ``` the call to `.sort` is an error, but we should still be able to contextually type `a` and `b`. This diff makes EPropNotReadable ReactDeepReadOnly error deferred_in_speculation, which means that it won't hinder hint computation. Changelog: [internal] Reviewed By: SamChou19815 Differential Revision: D67320625 fbshipit-source-id: 1a2fe1a1d6cf00a064d67154e258be2b98fa263b
- Loading branch information
1 parent
1a33f6b
commit 274962c
Showing
3 changed files
with
25 additions
and
18 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