The analyzer has detected a parameter that is overwritten before being used. As a result, the value passed to the function is ignored.
The example:
func Apply(a Node, b Node) {
a = SkipParenthesize(a)
b = SkipParenthesize(a)
// ....
}
The typo causes the value of b to be evaluated using the a parameter instead.
The fixed code:
func Apply(a Node, b Node) {
a = SkipParenthesize(a)
b = SkipParenthesize(b)
// ....
}
Was this page helpful?