PR# 19485 Incorrect report of code analysis rule CA020 instead of CA085
Problem Report Summary
Synopsis: Incorrect report of code analysis rule CA020 instead of CA085
A class with a local 's: STRING' that assigns to `s' and then creates `s' using the existing contents of `s' is incorrectly called a CA020 violation (Variable not used after assignment). The variable is definitely used after assignment. It seems to me that Analyze should instead possibly report CA085 (Unneeded helper variable), since the code could pass the string directly instead of first assigning it to `s'.
Analyze attached class TEST.