-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Fix intersection inference #18363
Fix intersection inference #18363
Conversation
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.
Looks good other than the test nit.
declare const a: { prop: string } & { prop: number }; | ||
declare const b: { prop: string & number }; | ||
|
||
f(a); // string & number |
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.
Consider using more realistic types for this test given that we've already been thinking about removing empty intersections types.
Does this change affect or undo #14829 (comment) ? |
Fixes #18354.
Verified that there are no changes to RWC baselines.
@RyanCavanaugh Would you mind giving the fourslash changes (related to JSX inference) a look? Best I can tell they are correct.