-
Notifications
You must be signed in to change notification settings - Fork 12.8k
4.1.1-rc strange Type is not assignable to type never with yield & generators #41428
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
Hey @RyanCavanaugh, can someone on the TS team please take a look since this looks like it could be a regression/change in behavior with 4.1 |
If this is a regression, we should consider whether something will need to be done for a patch release. |
The I'll have to look into what changed caused this. |
@rbuckton Any update on this -- still seeing it with 4.2-beta |
I updated one of my open PRs to cover for this case as well: #51196 |
TypeScript Version: 4.1.0-beta (4.1.1-rc too)
//cc @mjbvz
Expected behavior:
No error on the following line
As it works fine in TypeScript 4.0.5, and I'm unsure where the
never
is even coming from. Here is the actual source if it is interesting: https://github.com/eamodio/vscode-gitlens/blob/787bc8f3a976135d51032547e209b93267e14b2f/src%2Fcommands%2FquickCommand.steps.ts#L1794-L1814Actual behavior:
Error on the line
Related Issues:
Code
Output
Compiler Options
Playground Link: Provided
The text was updated successfully, but these errors were encountered: