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

Limit deep generic type instantiations #15011

Merged
merged 3 commits into from
Apr 5, 2017
Merged

Conversation

ahejlsberg
Copy link
Member

With this PR we limit recursive invocations of getTypeOfInstantiatedSymbol to a maximum depth of 100, at which point we report the error "Generic type instantiation is excessively deep and possibly infinite."

This PR also fixes an issue where constraints weren't checked for for invalid instantiations of indexed access types.

Fixes #14837.

@aozgaa aozgaa mentioned this pull request Apr 4, 2017
@ahejlsberg ahejlsberg merged commit 9d2b57a into master Apr 5, 2017
@ahejlsberg ahejlsberg deleted the limitDeepInstantiations branch April 5, 2017 03:28
@microsoft microsoft locked and limited conversation to collaborators Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stack overflow in recursive type alias + lookup type
3 participants