Skip to content

Simplify addTypeToUnion function #28027

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

Merged
merged 1 commit into from
Oct 21, 2018
Merged

Simplify addTypeToUnion function #28027

merged 1 commit into from
Oct 21, 2018

Conversation

ahejlsberg
Copy link
Member

With #28005 the addTypeToUnion ended up with an extra parameter and and a new addTypeToTypeSet function. There's no need for this extra overhead. This PR implements a simpler solution where we just stop excluding any from the type set.

@ahejlsberg ahejlsberg merged commit dc04b97 into master Oct 21, 2018
@ahejlsberg ahejlsberg deleted the simplifyAddTypeToUnion branch October 21, 2018 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants