-
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
Disallow void branches #7261
Disallow void branches #7261
Conversation
|
||
==== tests/cases/conformance/expressions/binaryOperators/logicalAndOperator/logicalAndOperatorWithEveryType.ts (10 errors) ==== | ||
// The && operator permits the operands to be of any type and produces a result of the same | ||
// type as the second operand. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might need to be updated. Should I split these tests up so we can observe the types of other expressions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
Why didn't we check this before? This seems fundamental to the type of binary logical operators. |
|
@jeffreymorlan that's not a bad idea either. Thanks! |
👍 and ✅ |
@DanielRosenwasser can you update this PR. |
@DanielRosenwasser can you update and merge this time :) |
Thanks for your contribution. This PR has failing CI tests and can not be merged in at the time being. For housekeeping purposes we are closing stale PRs. If you'd still like to merge this code in, please open a new PR that has been merged and rebased with the |
Fixes #7256
Open questions:
Should we cover
null
/undefined
types?TODO: