Skip to content

Conversation

ahejlsberg
Copy link
Member

Fixes #1718.
Fixes #1785.

@JsonFreeman
Copy link
Contributor

👍

ahejlsberg added a commit that referenced this pull request Jan 27, 2015
Fixes to union types in type guards and instanceof
@ahejlsberg ahejlsberg merged commit 9289cfb into master Jan 27, 2015
@ahejlsberg ahejlsberg deleted the enumUnionTypeGuard branch January 27, 2015 14:52
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 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.

instanceof on union type incorrectly issues error A type guard for number should narrow also the type for enum values

4 participants