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

Type predicates cannot be unions #5977

Closed
wants to merge 5 commits into from

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Dec 7, 2015

Add union type checking to checkTypePredicate and refactor checkSignatureDeclaration to call checkTypePredicate via checkSourceElement.

The new code is at the end of checkTypePredicate. I forgot to change the branch name -- what this really does is disallow the type of the type predicate from being a union that itself contains type predicates.

Fixes #5903.

And refactor checkSignatureDeclaration to call checkTypePredicate instead
of duplicating its code.
@sandersn sandersn closed this Dec 8, 2015
@sandersn sandersn deleted the type-predicates-cannot-be-unions branch April 13, 2016 22:52
@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.

2 participants