mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-10 00:20:22 -06:00
Don't set parent on non-transient symbols in mergeSymbolTable (#61560)
This commit is contained in:
parent
dba6c9b824
commit
b33d37201e
@ -2840,7 +2840,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
// When merging the module augmentation into a.ts, the symbol for `A` will itself be merged, so its parent
|
||||
// should be the merged module symbol. But the symbol for `B` has only one declaration, so its parent should
|
||||
// be the module augmentation symbol, which contains its only declaration.
|
||||
merged.parent = mergedParent;
|
||||
if (merged.flags & SymbolFlags.Transient) {
|
||||
merged.parent = mergedParent;
|
||||
}
|
||||
}
|
||||
target.set(id, merged);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user