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

[Errors] top level identifier named require or exports #63

Closed
mhegazy opened this issue Jul 17, 2014 · 0 comments · Fixed by #569
Closed

[Errors] top level identifier named require or exports #63

mhegazy opened this issue Jul 17, 2014 · 0 comments · Fixed by #569
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Jul 17, 2014

import require = require('collisionExportsRequireAndAlias_file1'); // Error
//!!! Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of an external module.
import exports = require('collisionExportsRequireAndAlias_file11'); // Error
//!!! Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of an external module.

Expected: errors above
Actual: no errors

See related testcases for other examples of where this is an error linked in TC ID field:
collisionExportsRequireAndClass.errors.txt
collisionExportsRequireAndEnum.errors.txt
collisionExportsRequireAndFunction.errors.txt
collisionExportsRequireAndModule.errors.txt
collisionExportsRequireAndVar.errors.txt
collisionRestParameterArrowFunctions.errors.txt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
3 participants