Bug Report
Current Behavior
SyntaxError: Identifier 'foo' has already been declared
Input Code
declare class foo {
}
declare module 'bar' {
export var foo: any; // Identifier 'foo' has already been declared
}
Expected behavior/code
no error
Babel Configuration (.babelrc, package.json, cli command)
typescript plugin
Environment
- Babel version(s): 7.4.5
- Node/npm version: Node 11.13 / npm 6.7
Possible Solution
In tsParseModuleBlock(), should change its scope to SCOPE_VAR or something new.
Bug Report
Current Behavior
SyntaxError: Identifier 'foo' has already been declared
Input Code
Expected behavior/code
no error
Babel Configuration (.babelrc, package.json, cli command)
typescript plugin
Environment
Possible Solution
In tsParseModuleBlock(), should change its scope to SCOPE_VAR or something new.