-
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.
Summary: Reposition used to only repos-cache the result of unresolved OpenTs (not resolved ones) In examples like ``` type T = T; declare var x : $ReadOnly<T>; x; ``` it is possible to reach non-termination due to a sequence of ``` reposition (OpenT (Resolved [AnnotT (OpenT ...)])) ``` This diff fixes this by including Resolved OpenTs in `repos_cache` Reviewed By: mroch Differential Revision: D25552507 fbshipit-source-id: 06b11be8f5cc46c3924686f695febb94bb1e0694
- Loading branch information
1 parent
3a33b21
commit 7970cec
Showing
2 changed files
with
33 additions
and
32 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,6 @@ | ||
// @flow | ||
|
||
// Excercises the reposition cache in the case of a resolved recursive type | ||
type T = T; | ||
declare var x : $ReadOnly<T>; | ||
x |