mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Fix resolving entity name of namespace member after alias is merged with type (#53387)
This commit is contained in:
1 parent
acfb0b53d1
commit
f43a4fe401
5 files changed
+141
No files matched your search
@@ -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