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 d1173f3 commit 7984e45Copy full SHA for 7984e45
csharp/ToolGood.Algorithm2/Internals/MathVisitor.cs
@@ -129,7 +129,7 @@ public Operand VisitAddSub_fun(mathParser.AddSub_funContext context)
129
}
130
131
firstValue = firstValue.ToText($"Function '{t}' parameter 1 is error!");
132
- if (firstValue.IsError) { return secondValue; }
+ if (firstValue.IsError) { return firstValue; }
133
secondValue = secondValue.ToText($"Function '{t}' parameter 2 is error!");
134
if (secondValue.IsError) { return secondValue; }
135
return Operand.Create(firstValue.TextValue + secondValue.TextValue);
0 commit comments