Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
V8038. A parameter is always...
menu mobile close menu
Additional information
toggle menu Contents

V8038. A parameter is always rewritten in the function body before being used.

Aug 06 2026

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)

  // ....
}