Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix empty array inference#21157

Merged
ahejlsberg merged 4 commits into
mastermicrosoft/TypeScript:masterfrom
fixEmptyArrayInferencemicrosoft/TypeScript:fixEmptyArrayInferenceCopy head branch name to clipboard
Jan 16, 2018
Merged

Fix empty array inference#21157
ahejlsberg merged 4 commits into
mastermicrosoft/TypeScript:masterfrom
fixEmptyArrayInferencemicrosoft/TypeScript:fixEmptyArrayInferenceCopy head branch name to clipboard

Conversation

@ahejlsberg

Copy link
Copy Markdown
Member

During inference we now retain inferences from both co- and contra-variant positions, and if the covariant candidates yield never we instead infer from the contravariant candidates. This ensures that we only infer never if there truly is nothing else to infer from.

Fixes #21112.

@ghost

ghost commented Jan 12, 2018

Copy link
Copy Markdown

May fix #19873?

@ahejlsberg

Copy link
Copy Markdown
Member Author

@Andy-MS No, that's an unrelated issue.

@falsandtru

Copy link
Copy Markdown
Contributor

ping @sandersn @mhegazy

@ahejlsberg ahejlsberg merged commit 64b3086 into master Jan 16, 2018
@ahejlsberg ahejlsberg deleted the fixEmptyArrayInference branch January 16, 2018 20:42
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.