We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21963ce commit 315b5f4Copy full SHA for 315b5f4
src/compiler/checker.ts
@@ -20132,10 +20132,7 @@ namespace ts {
20132
case SyntaxKind.NonNullExpression:
20133
return isMatchingReference(source, (target as NonNullExpression | ParenthesizedExpression).expression);
20134
case SyntaxKind.BinaryExpression:
20135
- if (isAssignmentExpression(target)) {
20136
- return isMatchingReference(source, target.left);
20137
- }
20138
- break;
+ return isAssignmentExpression(target) && isMatchingReference(source, target.left);
20139
}
20140
switch (source.kind) {
20141
case SyntaxKind.Identifier:
0 commit comments