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

Properly handle private and protected properties in intersections #13990

Merged
merged 4 commits into from
Feb 13, 2017

Conversation

ahejlsberg
Copy link
Member

With this PR we properly handle private and protected properties in intersection types. This fixes several issues related to use of private and protected in mixins (which use intersections to construct the resulting types).

This PR also introduces a new CheckFlags enum type representing bit flags that are present in every TransientSymbol (i.e. every symbol created by the type checker) and moves the Instantiated and SyntheticProperty flags from SymbolFlags to the new CheckFlags. Furthermore, the Merged flag is removed from SymbolFlags since the Transient flag already provides the same information.

Fixes #13830.
Fixes #13924.

@ahejlsberg
Copy link
Member Author

@mhegazy Want to review this before I merge?

@ahejlsberg ahejlsberg merged commit 7cd0e1a into master Feb 13, 2017
@ahejlsberg ahejlsberg deleted the fixPrivateProtected branch February 13, 2017 18:13
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants