Skip to content

Fixed JSX context-sensitive children discrimination for generic signatures#2803

Merged
jakebailey merged 4 commits intomicrosoft:mainfrom
Andarist:fix/contextually-typed-jsx-children
Feb 17, 2026
Merged

Fixed JSX context-sensitive children discrimination for generic signatures#2803
jakebailey merged 4 commits intomicrosoft:mainfrom
Andarist:fix/contextually-typed-jsx-children

Conversation

@Andarist
Copy link
Contributor

@Andarist Andarist commented Feb 17, 2026

fixes #2802
fixes #2797

@Andarist Andarist force-pushed the fix/contextually-typed-jsx-children branch from 23d7c91 to 847b3fc Compare February 17, 2026 19:59
@Andarist Andarist requested a review from ahejlsberg February 17, 2026 20:18
>(props) => <div>{props.locale}</div> : (props: { locale: string; children: {}; }) => JSX.Element
>props : { locale: string; children: {}; }
>(props) => <div>{props.locale}</div> : (props: BaseProps) => JSX.Element
>props : BaseProps
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes, the ObjectFlagsNonInferrableType flag wasn't being propagated. Nice!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth fixing in Strada?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just leave Strada alone for now.

@jakebailey jakebailey added this pull request to the merge queue Feb 17, 2026
Merged via the queue into microsoft:main with commit c2908f5 Feb 17, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants