dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.07k stars 4.04k forks source link

Fix name violation for record parameters does not update usages #47175

Open YairHalberstadt opened 4 years ago

YairHalberstadt commented 4 years ago

Version Used: VS 16.8 preview 2

Steps to Reproduce:

    public record Record(int i) { int M() => i; }

has diagnostic:

IDE1006: Naming rule violation: These words must begin with upper case characters:

The provided code fix does not update usages leading to the non compiling code:

    public record Record(int I) { int M() => i; }
Youssef1313 commented 3 years ago

Related: https://github.com/dotnet/roslyn/issues/50450.