Skip to content

Restore union-like behavior for inference to conditional types - #32208

Merged
Anders Hejlsberg (ahejlsberg) merged 2 commits into
masterfrom
fix31766
Jul 2, 2019
Merged

Anders Hejlsberg (ahejlsberg) merged 2 commits into
masterfrom
fix31766

Conversation

@ahejlsberg

Copy link
Copy Markdown
Member

Fixes #31766.

@weswigham Wesley Wigham (weswigham) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should check that that node8 test is passing, too - I restarted it because the failure seemed unrelated (maybe due to a nested dependency) hopefully it's ok on rerun.

@weswigham

Copy link
Copy Markdown
Member

cc Ron Buckton (@rbuckton) re: the node 8 failure on this PR. That failure looks like it's in an untranspiled optional catch clause in a library you happen to maintain: https://github.com/esfx/esfx/blob/master/internal/deprecate/src/index.ts

@rbuckton

Copy link
Copy Markdown
Contributor

Should be fixed now. I restarted the node 8 build and it passed successfully.

@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generic type inference prefers conditional types

3 participants