Skip to content

Conversation

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds documentation for C# 11 list pattern diagnostics by consolidating six error codes (CS8978, CS8979, CS8980, CS8985, CS9013, CS9060) from the generic error page into the pattern-matching-warnings.md article. The changes reorganize the pattern matching documentation into clearer sections and perform a general editing pass on the content.

Key changes:

  • Removes six error codes from the undocumented errors list
  • Adds comprehensive documentation for list pattern errors, type pattern errors, and related diagnostics
  • Restructures the pattern matching article with new sections for better organization

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 9 comments.

File Description
docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md Removes CS8978, CS8979, CS8980, CS8985, CS9013, and CS9060 from the undocumented errors list
docs/csharp/language-reference/toc.yml Updates displayName to include the newly documented error codes
docs/csharp/language-reference/compiler-messages/pattern-matching-warnings.md Adds documentation for list pattern and type pattern errors, restructures content with new sections
.github/prompts/error-consolidation.md Updates metadata to reflect current work on pattern-matching-warnings.md

@BillWagner BillWagner merged commit a633a6d into dotnet:main Dec 15, 2025
9 checks passed
@BillWagner BillWagner deleted the list-pattern-diagnostics branch December 15, 2025 12:53
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.

Add List pattern warnings and errors

2 participants