We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b8b207 commit 2ce1eb9Copy full SHA for 2ce1eb9
src/compiler/checker.ts
@@ -25528,7 +25528,7 @@ namespace ts {
25528
if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) {
25529
const parent = declaration.parent.parent;
25530
if (parent.kind === SyntaxKind.VariableDeclaration && getCombinedNodeFlags(declaration) & NodeFlags.Const || parent.kind === SyntaxKind.Parameter) {
25531
- const links = getNodeLinks(location);
+ const links = getNodeLinks(parent);
25532
if (!(links.flags & NodeCheckFlags.InCheckIdentifier)) {
25533
links.flags |= NodeCheckFlags.InCheckIdentifier;
25534
const parentType = getTypeForBindingElementParent(parent, CheckMode.Normal);
0 commit comments