mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix resolving entity name of namespace member after alias is merged with type (#53387)
This commit is contained in:
@@ -4688,6 +4688,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
}
|
||||
}
|
||||
symbol = getMergedSymbol(getSymbol(getExportsOfSymbol(namespace), right.escapedText, meaning));
|
||||
if (!symbol && (namespace.flags & SymbolFlags.Alias)) {
|
||||
// `namespace` can be resolved further if there was a symbol merge with a re-export
|
||||
symbol = getMergedSymbol(getSymbol(getExportsOfSymbol(resolveAlias(namespace)), right.escapedText, meaning));
|
||||
}
|
||||
if (!symbol) {
|
||||
if (!ignoreErrors) {
|
||||
const namespaceName = getFullyQualifiedName(namespace);
|
||||
|
||||
Reference in New Issue
Block a user