fix(45799): skip checking arguments used as a key in object literals (#45814)

This commit is contained in:
Oleksandr T
2021-10-15 20:34:57 +03:00
committed by GitHub
parent b1f39a705e
commit 7582b1bbae
6 changed files with 226 additions and 1 deletions

View File

@@ -12581,7 +12581,7 @@ namespace ts {
if (!node) return false;
switch (node.kind) {
case SyntaxKind.Identifier:
return (node as Identifier).escapedText === argumentsSymbol.escapedName && getResolvedSymbol(node as Identifier) === argumentsSymbol;
return (node as Identifier).escapedText === argumentsSymbol.escapedName && getReferencedValueSymbol(node as Identifier) === argumentsSymbol;
case SyntaxKind.PropertyDeclaration:
case SyntaxKind.MethodDeclaration: