mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Include globals in check for existing identifiers
This commit is contained in:
@@ -10260,7 +10260,7 @@ module ts {
|
||||
}
|
||||
|
||||
function isExistingName(name: string) {
|
||||
return hasProperty(sourceFile.identifiers, name) || hasProperty(generatedNames, name);
|
||||
return hasProperty(globals, name) || hasProperty(sourceFile.identifiers, name) || hasProperty(generatedNames, name);
|
||||
}
|
||||
|
||||
function makeUniqueName(baseName: string): string {
|
||||
|
||||
Reference in New Issue
Block a user