-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Can no longer write deep predicates in conditional types #52271
Comments
It's great that it is fixed but it must have been in a different PR, or maybe it was an unintentional side-effect, because these 2 issues are not related to me: the outcome of the conditional cannot be known here. I feel that a test case should be added for this scenario if it hasn't been already. |
That PR definitely fixed it; I bisected to confirm before replying. |
I've also checked and it was #50397 which regressed this. |
Sent #52333 with a test. |
Bug Report
π Search Terms
conditional types, generics, deep, predicate
π Version & Regression Information
This changed between versions 4.8.4 and 4.9.4
β― Playground Link
Playground link with the code bellow
π» Code
This is not limited to tuples
π Actual behavior
There is a type error that literally contradicts the predicate of the conditional
π Expected behavior
It should compile with no error
The text was updated successfully, but these errors were encountered: