Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues related to circular mapped array and tuple types #29740

Merged
merged 4 commits into from
Feb 6, 2019

Conversation

ahejlsberg
Copy link
Member

This PR reverts #27911 and implements a less aggressive and more robust scheme for detecting infinitely circular mapped types applied to arrays and tuples. We now allow type instantiation to run up against the already existing type instantiation depth limiter (with a limit of 50) and then propagate the error type up instead of leaving it at the bottom of a 50 level deep type instantiation.

The PR also fixes an issue of us not detecting a homomorphic mapped type nested in a conditional type as reported in #29702.

Fixes #29442.
Fixes #29577.
Fixes #29702.

@ahejlsberg ahejlsberg merged commit d9ee867 into master Feb 6, 2019
@ahejlsberg ahejlsberg deleted the fixCircularMappedArrayTuple branch February 6, 2019 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants