Skip to content

Commit 2ce1eb9

Browse files
committed
Better blocking of recursive dependencies in getNarrowedTypeOfSymbol
1 parent 3b8b207 commit 2ce1eb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25528,7 +25528,7 @@ namespace ts {
2552825528
if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) {
2552925529
const parent = declaration.parent.parent;
2553025530
if (parent.kind === SyntaxKind.VariableDeclaration && getCombinedNodeFlags(declaration) & NodeFlags.Const || parent.kind === SyntaxKind.Parameter) {
25531-
const links = getNodeLinks(location);
25531+
const links = getNodeLinks(parent);
2553225532
if (!(links.flags & NodeCheckFlags.InCheckIdentifier)) {
2553325533
links.flags |= NodeCheckFlags.InCheckIdentifier;
2553425534
const parentType = getTypeForBindingElementParent(parent, CheckMode.Normal);

0 commit comments

Comments
 (0)