Skip to content

Add the final C# 11 errors#51531

Merged
BillWagner merged 2 commits intodotnet:mainfrom
BillWagner:final-csharp11-errors
Feb 6, 2026
Merged

Add the final C# 11 errors#51531
BillWagner merged 2 commits intodotnet:mainfrom
BillWagner:final-csharp11-errors

Conversation

@BillWagner
Copy link
Member

@BillWagner BillWagner commented Feb 5, 2026

Fixes #49602

Add the final 2 message for static abstract interfaces. In addition, do a general edit pass for that file. Remove two duplicates in two different files.

The additional errors that were removed from the "sorry" file aren't generated by roslyn anymore. Most were from !!, which was removed while in preview. Others have been subsumed by newer, better error messages.


Internal previews

📄 File 🔗 Preview link
docs/csharp/language-reference/compiler-messages/overloaded-operator-errors.md Resolve errors and warnings in user-defined operator declarations
docs/csharp/language-reference/compiler-messages/static-abstract-interfaces.md Static abstract interface members errors and warnings
docs/csharp/language-reference/toc.yml docs/csharp/language-reference/toc
docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md Coming in C# 15

Fixes dotnet#49602

Add the final 2 message for static abstract interfaces. In addition, do a general edit pass for that file. Remove two duplicates in two different files.

The additional errors that were removed from the "sorry" file aren't generated by roslyn anymore. Most were from `!!`, which was removed while in preview. Others have been subsumed by newer, better error messages.
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 pull request adds documentation for two final C# 11 compiler errors (CS9044 and CS9046) related to static abstract interface members. It also performs maintenance by removing duplicate error code references and cleaning up obsolete entries.

Changes:

  • Adds comprehensive documentation for CS9044 (inaccessible member implementation) and CS9046 (equality operator parameter constraints) in the static abstract interfaces guide
  • Removes CS8930 and CS8931 from overloaded-operator-errors.md and converts them to cross-references pointing to static-abstract-interfaces.md
  • Removes obsolete error codes (CS8984, CS8989, CS9064) from the "sorry" file that are either documented elsewhere or no longer generated by Roslyn

Reviewed changes

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

File Description
sorry-we-don-t-have-specifics-on-this-csharp-error.md Removes obsolete C# 11 error codes from the undocumented errors list
toc.yml Updates error code listings in table of contents - removes duplicates from operator errors and adds new codes to static abstract interfaces
static-abstract-interfaces.md Adds CS9044 and CS9046 documentation with detailed explanations and updates date metadata
overloaded-operator-errors.md Replaces duplicate CS8930/CS8931 entries with cross-references to static-abstract-interfaces.md

@BillWagner BillWagner closed this Feb 5, 2026
@BillWagner BillWagner reopened this Feb 5, 2026
@BillWagner BillWagner requested a review from adegeo February 5, 2026 20:30
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
@BillWagner BillWagner enabled auto-merge (squash) February 6, 2026 14:03
@BillWagner BillWagner merged commit 7a63e13 into dotnet:main Feb 6, 2026
9 checks passed
@BillWagner BillWagner deleted the final-csharp11-errors branch February 6, 2026 14:56
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 C# 11 static abstract errors and warnings

2 participants