New warning CS9220 for Razor code using string.Join #73643
Labels
Area-Compilers
New Feature - ParamsCollections
untriaged
Issues and PRs which have not yet been triaged by a lead
Milestone
See dotnet/aspnetcore#55780 (comment) for the original conversation
Version Used:
.NET SDK 9.0.100-preview.5.24262.2
Steps to Reproduce:
Where the
ProductsService.GetProductNames
method looks like:A minimal repro, with source-code provided, is ideal. Using sharplab is preferred for compiler/language issues whenever possible.
Diagnostic Id: CS9220
Expected Behavior:
Before .NET 9, the above code compiled successfully without warnings.
Actual Behavior:
Using .NET 9, the code now produces a new warning:
This was discovered when taking a new dotnet/runtime version with dotnet/runtime#101499 which added the
params
keyword to parameters ofstring.Join
.cc @AlekseyTs @jaredpar @jozkee @javiercn
The text was updated successfully, but these errors were encountered: