-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Expression produces a union type that is too complex to represent #33130
Comments
This error was added intentionally, so it’s likely to be by design, but we should take a look at the code to confirm. |
Righto, so Now, this specific case, when we're distributing a ton of unions, all of which contain |
My question: if normalization was really producing that many types, why did this work before instead of, you know, causing OoM? |
Because the type simplifies massively upon construction - |
TypeScript Version: 3.6.2
Search Terms:
Repo
git clone https://github.com/Microsoft/typescript-template-language-service-decorator
npm install
Open
src/template-language-service-decorator.ts
On line 44, remove the any cast on the line:
Try compiling the project
Expected behavior:
This compiles with TS 3.4
Actual behavior:
Compile fails with TS 3.5+
The code likely needs to be rewritten here but I'm opening this issue to make sure the error is expected
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: