We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0595d61 commit a13f862Copy full SHA for a13f862
src/compiler/checker.ts
@@ -17205,7 +17205,7 @@ namespace ts {
17205
if (!(node.flags & NodeFlags.InWithStatement)) {
17206
switch (node.kind) {
17207
case SyntaxKind.Identifier:
17208
- const symbol = getResolvedSymbol(<Identifier>node);
+ const symbol = getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(<Identifier>node));
17209
return getExplicitTypeOfSymbol(symbol.flags & SymbolFlags.Alias ? resolveAlias(symbol) : symbol);
17210
case SyntaxKind.ThisKeyword:
17211
return getExplicitThisType(node);
0 commit comments