Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add errors and warnings for params arrays #41027

Merged
merged 4 commits into from
May 28, 2024

Conversation

BillWagner
Copy link
Member

@BillWagner BillWagner commented May 21, 2024

Add reference information for all new compiler errors and warnings for params arrays.

Contributes to #40005

  • Consolidate all articles into one.
  • Edit and provide more clear general guidance on the rules for params parameters.

Internal previews

📄 File 🔗 Preview link
docs/csharp/language-reference/compiler-messages/expression-tree-restrictions.md Resolve errors and warnings generated from expressions prohibited in expression trees
docs/csharp/language-reference/compiler-messages/index.md "Compiler messages"
docs/csharp/language-reference/compiler-messages/params-arrays.md Errors and warnings related to the params modifier on method parameters

Consolidate all related (existing) content into one article. Add new errors and warnings to the introduction.
Combine errors on different concepts related to the `params` modifier.
@BillWagner BillWagner force-pushed the params-warnings-errors branch from b4217fb to 14a9259 Compare May 22, 2024 17:01
@BillWagner BillWagner marked this pull request as ready for review May 22, 2024 21:18
@BillWagner BillWagner requested a review from a team as a code owner May 22, 2024 21:18
@BillWagner BillWagner requested a review from IEvangelist May 22, 2024 21:18
@BillWagner BillWagner merged commit 3b1a1b6 into dotnet:main May 28, 2024
8 checks passed
@BillWagner BillWagner deleted the params-warnings-errors branch May 28, 2024 13:46
@BillWagner BillWagner added the 🏁 Release: .NET 9 Work items for the .NET 9 release label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants