-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Callstack exceeded in typescript @ next #27142
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
Comments
@paulvanbrenk Any chance you could reproduce using |
sure thing.... I cut of the output after the 4rd repetition:
|
Thanks, I can reproduce this with: /** @enum {E} */
const E = { x: 0 }; in JS. Don't have a TS repro but I notice that the code for |
Thanks for the quick investigation @Andy-MS, as this would block us from adapting TS 3.1. |
I have a fix, although it seems like it's abusing our existing circularity detection infrastructure. I'll send it out after I add a new error message. |
Note that with |
I haven't been able to reproduce using a small repro, but when I remove the jsdoc-s from all of our enums the issue goes away. Further this started happening when I removed an invalid type from the jsdocs.
original code:
Fix invalid type, which causes callstack issue:
Code that compiles without issue:
Stack:
The text was updated successfully, but these errors were encountered: