Skip to content

Conversation

BillWagner
Copy link
Member

@BillWagner BillWagner commented Oct 16, 2025

Fixes dotnet#46453

After new operators were added, new diagnostics were necessary in the area of extensions.

Also, pick up a few other stragglers added for other features.
Copy link
Contributor

@Copilot 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 additional C# compiler errors related to extension declarations, addressing issue #46453. The changes update error lists and documentation to include new diagnostics that were introduced with recent operators and other language features.

Key changes:

  • Added 12 new extension-related error codes (CS9306, CS9309, CS9316-CS9323, CS9326, CS9329) to various documentation files
  • Added 2 new pattern matching warning codes (CS9335, CS9337) with examples and explanations
  • Updated table of contents entries to include the new error codes

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sorry-we-don-t-have-specifics-on-this-csharp-error.md Removed redundant error codes and added CS9338 to the list
toc.yml Added new extension and pattern matching error codes to appropriate sections
Switch.cs Added code example demonstrating redundant pattern matching scenarios
pattern-matching-warnings.md Added documentation for CS9335 and CS9337 with examples and explanations
extension-declarations.md Added comprehensive documentation for 12 new extension-related error codes

@BillWagner BillWagner merged commit fa2db7c into dotnet:main Oct 17, 2025
8 checks passed
@BillWagner BillWagner deleted the extension-errors branch October 17, 2025 17:33
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.

[C# 14-Errors and warnings]: New Feature - extension as an identifier

2 participants