We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a2f996 commit e4d32d8Copy full SHA for e4d32d8
src/compiler/checker.ts
@@ -4978,7 +4978,8 @@ namespace ts {
4978
return true;
4979
}
4980
else if (expr.kind === SyntaxKind.BinaryExpression) {
4981
- return isStringConcatExpression((<BinaryExpression>expr).left) && isStringConcatExpression((<BinaryExpression>expr).right);
+ const binaryExpression = <BinaryExpression>expr;
4982
+ return binaryExpression.operatorToken.kind === SyntaxKind.PlusToken && isStringConcatExpression(binaryExpression.left) && isStringConcatExpression(binaryExpression.right);
4983
4984
return false;
4985
0 commit comments