CA1861 code fix doesn't use unique name #6981
Labels
Area-CodeFix
Bug in code fixer
Bug
The product is not behaving according to its current intended design
good first issue
help wanted
The issue is up-for-grabs, and can be claimed by commenting
Milestone
Analyzer
Diagnostic ID: CA1861:
Extract to static readonly field
Analyzer source
SDK: Built-in CA analyzers in .NET 5 SDK or later
Version: SDK 8.0.0-rc2
Describe the bug
CA1861 code fix creates a new field that can have the same name as a local variable
Steps To Reproduce
Original code:
After code fix:
Expected behavior
Generate a unique name
Actual behavior
Additional context
The text was updated successfully, but these errors were encountered: