-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add C# 11 list pattern diagnostics #50569
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
Conversation
These were added in C# 11.
There was a problem hiding this 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 |
docs/csharp/language-reference/compiler-messages/pattern-matching-warnings.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/pattern-matching-warnings.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/pattern-matching-warnings.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/pattern-matching-warnings.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/pattern-matching-warnings.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/pattern-matching-warnings.md
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/pattern-matching-warnings.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/pattern-matching-warnings.md
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
Fixes #49594
While in this file, perform a general edit pass.
Internal previews