[release/v7.5] Make inherited protected internal instance members accessible in class scope. by pwshBot · Pull Request #25547 · PowerShell/PowerShell

Backport of #25245 to release/v7.5

Triggered by @daxian-dbw on behalf of @mawosoft

Original CL Label: CL-General

/cc @PowerShell/powershell-maintainers

Impact

Choose either tooling or Customer impact.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Customer Impact

  • Customer reported
  • Found internally

Prevented PowerShell classes to access inherited protected internal instance members in addition to protected ones.

Regression

  • Yes
  • No

From the user's perspective, this is a regression. From PowerShell's perspective, this is a new feature.

Testing

tests were added

Risk

  • High
  • Medium
  • Low

[High/Medium/Low. Justify the indication by mentioning how risks were measured and addressed.]