Skip to content

Fix deeply nested type check #14825

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

Merged
merged 3 commits into from
Mar 23, 2017
Merged

Fix deeply nested type check #14825

merged 3 commits into from
Mar 23, 2017

Conversation

ahejlsberg
Copy link
Member

Fixes #14794.

@ahejlsberg
Copy link
Member Author

@mhegazy Oddly, in the existing logic we would only trigger a deeply nested exit when both sides were generic types. I've modified the logic to now track all object types that have an associated symbol (which includes non-generic classes and interfaces) and trigger an exit when a particular type (or instantiations of that particular type) occur 5 or more times.

@ahejlsberg ahejlsberg merged commit a9d8df2 into master Mar 23, 2017
@ahejlsberg ahejlsberg deleted the fixDeeplyNestedCheck branch March 23, 2017 18:42
@zpdDG4gta8XKpMCd
Copy link

can that 5 be coming from the tsconfig please?

@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.

4 participants