You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 47c4bf9
Browse filesBrowse the repository at this point in the historyBrowse files
When a query enters a cycle somewhere other than its program-order
entry, the cycle yields to its first member and recomputes it with the
resolutions below hidden. Two things made that recomputation differ
from computing the member first:
- The reverse mapping stacks, contextual types and inference contexts
of the hidden resolutions stayed visible, so the recomputation saw
contexts that a computation from scratch never has. A yield now hides
them along with the resolutions and restores them when it ends.
- Results were kept as cycle participants only by comparing the
outermost cycle head in progress against the resolution. A cycle
headed below the yield, which the yield cannot observe, caused the
yield root and the hidden re-entries of itself to be discarded, so
the member was computed again and genuinely re-entered itself.
Each type resolution now tracks the lowest cycle head it observed, and
a result is kept when what it observed was entered from scratch: by
the outer resolution of itself, by the yield it is the root of, or by
the outermost measurement of variances.
(seen in circularScopeThunkReverseMapped)
Copy file name to clipboardExpand all lines: tsc/testdata/baselines/reference/compiler/circularScopeThunkReverseMapped(checkorder=typesfirst).errors.txt
0 commit comments