-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
improper declared type cause narrow type not work when its computed type is not union. #39114
Comments
The reason is #38839 Add this link, for I meet similar problem in the fix. |
( I sneakily edited the issue body to be a twoslash compiler repro to test the bot ) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Think I've got the bugs down, @typescript-bot run repros |
Heya @orta, I've started to run the code sample repros for you. Here's the link to my best guess at the log. |
👋 Hi, I'm the Repro bot. I can help narrow down and track compiler bugs across releases! This comment reflects the current state of the repro in the issue body running against the nightly TypeScript. Issue body code block by @ShuiRuTian
Historical Information
|
TypeScript Version: 4.0
Search Terms:
Code
Expected behavior:
the last x should be never.
Actual behavior:
still B.
Playground Link:
https://www.typescriptlang.org/play/index.html?ts=4.0.0-dev.20200615&ssl=1&ssc=1&pln=25&pc=2#code/JYOwLgpgTgZghgYwgAgIIG8BQyfLATwAcIAuAclTMwF9NNRJZEUAhLXPI0slq2zGAFcQCMMAD2IZHADOM6GAAUADxJwQ+AJTI1chTOTLkwA6gA+bOvyEixk5DHHiVJaRs2v1+ZO1zKA3DgA9EFu+Ni4svJQSsqa-hE4AcGhqMhmyCyJxjDIKgB0BMTIALxlyBRk2r4cOFAQYIJQUgHZtBzJyCGZ2cC5BUUoZSUVvNXZHPWNzYYJHO1+gV2hWdRAA
Related Issues:
The text was updated successfully, but these errors were encountered: