Skip to content
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 type predicates with structurally identical types #12251

Merged
merged 4 commits into from
Nov 15, 2016

Conversation

ahejlsberg
Copy link
Member

The special casing we implemented for instanceof in #10216 also ended up also applying to similar type predicates. This fix reverts type predicates to their original behavior.

Fixes #12235.

@ahejlsberg ahejlsberg merged commit 73ada7a into master Nov 15, 2016
@ahejlsberg ahejlsberg deleted the fixTypePredicateStructuralMatch branch November 15, 2016 21:20
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 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.

Narrowing a type union with user-defined type guard
3 participants