Skip to content

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