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 export * merging to not overwrite original members #2123

Merged
merged 1 commit into from
Feb 24, 2015

Conversation

ahejlsberg
Copy link
Member

Computing the merged set of exports for an external module with export * statements inadvertently overwrites the original set of exports. This PR fixes the issue.

@JsonFreeman
Copy link
Contributor

Can you add a test?

@ahejlsberg
Copy link
Member Author

The problem shows up in incremental bind scenarios, e.g. if module "b" has an export * of the members of a module "a", then when "a" is modified, "b" will still show the old exported members of "a". Not sure how to construct such a test, but I have manually verified that the fix solves the problem.

@JsonFreeman
Copy link
Contributor

Ah, got it. In that case, you could use a fourslash test to verify this.

@JsonFreeman
Copy link
Contributor

👍

ahejlsberg added a commit that referenced this pull request Feb 24, 2015
Fix export * merging to not overwrite original members
@ahejlsberg ahejlsberg merged commit a0eff60 into master Feb 24, 2015
@ahejlsberg ahejlsberg deleted the fixExportStarMerging branch February 24, 2015 23:14
@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.

3 participants