Struct data member is hidden by a function parameter.

Vulnerability and risk

When function parameters hide members of containing structures, those members become accessible only through 'this' link. This behaviour is most likely not intended.

Example 1

  struct Zoo {
      private int snakes;
      int numberOfSpecies;
      void LodgeSnakes (bool snakes) {  // defect - method parameter hides a struct member
          if (snakes)