-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add new C# 14 diagnostics for interface implementations, and consolidate existing interface implementation diagnostics #49871
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
Create shell, TOC, and placeholder for error consolidation related to interface implementations.
771da4b to
f1d3f7c
Compare
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 consolidates interface implementation error documentation by creating a single comprehensive article that covers 26 compiler errors and warnings related to interface member implementation. The new documentation provides organized guidance on resolving common interface implementation issues.
Key Changes
- Creates a new consolidated article
interface-implementation-errors.mdcovering 26 interface-related diagnostics organized into 8 thematic sections - Removes 18 individual error documentation files and redirects them to the new consolidated article
- Adds the new consolidated article to the TOC with appropriate display names and error code references
- Updates cross-references to point to the new consolidated documentation
Reviewed Changes
Copilot reviewed 25 out of 25 changed files in this pull request and generated 23 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/csharp/language-reference/compiler-messages/interface-implementation-errors.md | New consolidated documentation covering interface implementation errors organized by theme (declaration, return types, implementations, matching, constraints, visibility, accessors, ambiguity, and special restrictions) |
| docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md | Removes f1_keywords for consolidated errors (CS0630, CS8705, CS8711, CS8854, CS9333, CS9334) |
| docs/csharp/language-reference/toc.yml | Adds new interface implementation section to TOC and removes individual error entries |
| docs/csharp/programming-guide/interfaces/explicit-interface-implementation.md | Updates CS0106 link to point to consolidated documentation |
| .openpublishing.redirection.csharp.json | Adds 19 redirect entries for consolidated error pages |
| .github/prompts/error-consolidation.md | Updates prompt template references to interface implementation errors |
| 18 individual error files (cs0071.md, cs0106.md, cs0277.md, etc.) | Deleted and consolidated into interface-implementation-errors.md |
Contributes to #49292
Internal previews