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

check if import collides with exported local name #7583

Merged
merged 1 commit into from
Mar 18, 2016

Conversation

vladima
Copy link
Contributor

@vladima vladima commented Mar 18, 2016

fixes #7195

// and symbol.flags will contains combined representation for all merged declaration.
// Based on symbol.flags we can compute a set of excluded meanings (meaning that resolved alias should not have,
// otherwise it will conflict with some local declaration). Note that in addition to normal flags we include matching SymbolFlags.Export*
// in order to prevent collisions with declarations that were exported from the current module (they still contribute to local names).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means that previously we would correctly catch unexported functions, right? Like:

import {f} from "f1"
function f() { }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes and we still do this

@sandersn
Copy link
Member

👍

1 similar comment
@mhegazy
Copy link
Contributor

mhegazy commented Mar 18, 2016

👍

vladima added a commit that referenced this pull request Mar 18, 2016
check if import collides with exported local name
@vladima vladima merged commit 32178ac into master Mar 18, 2016
@vladima vladima deleted the colliding-local-import branch March 18, 2016 19:21
vladima added a commit that referenced this pull request Mar 19, 2016
@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.

import and export function name confliction should be an error
4 participants