You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/compiler/checker.ts
+9-7
Original file line number
Diff line number
Diff line change
@@ -43035,7 +43035,7 @@ namespace ts {
43035
43035
// declaration, we need to start resolution at the declaration's container.
43036
43036
// Otherwise, we could incorrectly resolve the export container as the
43037
43037
// declaration if it contains an exported member with the same name.
43038
-
let symbol = getReferencedValueSymbol(node, /*startInDeclarationContainer*/ isNameOfModuleOrEnumDeclaration(node));
43038
+
let symbol = getReferencedValueSymbol(node, /*startInDeclarationContainer*/ isNameOfModuleOrEnumDeclaration(node), /*useCache*/ false); // >> change here
43039
43039
if (symbol) {
43040
43040
if (symbol.flags & SymbolFlags.ExportValue) {
43041
43041
// If we reference an exported entity within the same module declaration, then whether
function getReferencedValueSymbol(reference: Identifier, startInDeclarationContainer?: boolean, useCache = true): Symbol | undefined { // TODO: if we change this to return any kind of symbol, then rename it
0 commit comments