Skip to content

Commit a13f862

Browse files
committedSep 27, 2019
Handle alias symbols in getTypeOfDottedName
1 parent 0595d61 commit a13f862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17205,7 +17205,7 @@ namespace ts {
1720517205
if (!(node.flags & NodeFlags.InWithStatement)) {
1720617206
switch (node.kind) {
1720717207
case SyntaxKind.Identifier:
17208-
const symbol = getResolvedSymbol(<Identifier>node);
17208+
const symbol = getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(<Identifier>node));
1720917209
return getExplicitTypeOfSymbol(symbol.flags & SymbolFlags.Alias ? resolveAlias(symbol) : symbol);
1721017210
case SyntaxKind.ThisKeyword:
1721117211
return getExplicitThisType(node);

0 commit comments

Comments
 (0)