getSymbolDisplayPartsDocumentationAndSymbolKind: use actual symbol.flags for getAliasedSymbol

Fixes #35347.
This commit is contained in:
Eli Barzilay
2020-06-04 13:50:33 -04:00
parent 55d4592f4e
commit a4c14a2cdc
2 changed files with 26 additions and 1 deletions
+2 -1
View File
@@ -379,7 +379,8 @@ namespace ts.SymbolDisplay {
}
}
}
if (symbolFlags & SymbolFlags.Alias) {
// don't use symbolFlags since getAliasedSymbol requires the flag on the symbol itself
if (symbol.flags & SymbolFlags.Alias) {
prefixNextMeaning();
if (!hasAddedSymbolInfo) {
const resolvedSymbol = typeChecker.getAliasedSymbol(symbol);