File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed
tests/baselines/reference Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -29974,7 +29974,7 @@ namespace ts {
29974
29974
const symbol = getSymbolOfNode(node);
29975
29975
const target = resolveAlias(symbol);
29976
29976
if (target !== unknownSymbol) {
29977
- // For external modules symbol represent local symbol for an alias.
29977
+ // For external modules symbol represents local symbol for an alias.
29978
29978
// This local symbol will merge any other local declarations (excluding other aliases)
29979
29979
// and symbol.flags will contains combined representation for all merged declaration.
29980
29980
// Based on symbol.flags we can compute a set of excluded meanings (meaning that resolved alias should not have,
@@ -30004,7 +30004,9 @@ namespace ts {
30004
30004
function checkImportBinding(node: ImportEqualsDeclaration | ImportClause | NamespaceImport | ImportSpecifier) {
30005
30005
checkCollisionWithRequireExportsInGeneratedCode(node, node.name!);
30006
30006
checkCollisionWithGlobalPromiseInGeneratedCode(node, node.name!);
30007
- checkAliasSymbol(node);
30007
+ if (!isInJSFile(node)) {
30008
+ checkAliasSymbol(node);
30009
+ }
30008
30010
}
30009
30011
30010
30012
function checkImportDeclaration(node: ImportDeclaration) {
Original file line number Diff line number Diff line change @@ -258,4 +258,4 @@ namespace ts {
258
258
isDebugInfoEnabled = true ;
259
259
}
260
260
}
261
- }
261
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments