Skip to content

Fixed a maximum call stack exceeded crash with some recursive conditional types #53787

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

Conversation

Andarist
Copy link
Contributor

fixes #53783

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Apr 15, 2023
@ahejlsberg
Copy link
Member

This isn't quite the right fix. The problem here is that we continue resolution of conditional types even when instantiation of the check and/or extends types caused errors. I have a fix for that in #53801.

@Andarist
Copy link
Contributor Author

it was worth a try :P

@Andarist Andarist closed this Apr 16, 2023
@Andarist Andarist deleted the fix/max-call-stack-infinite-conditional branch April 16, 2023 17:43
@ahejlsberg
Copy link
Member

@Andarist Always appreciate your efforts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RangeError: Maximum call stack size exceeded on recursive conditional type with template literal string type using infer keyword
3 participants