-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Generic declaration errors #51394
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
Generic declaration errors #51394
Conversation
Copilot identified 11 more candidates related to this theme.
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 pull request consolidates C# compiler errors and warnings related to generic type parameters into a single comprehensive documentation file (generic-type-parameters-errors.md). The changes address issue #49601, which requested documentation for CS9011 and CS9012 errors introduced in C# 11, along with consolidation of other generic-related errors.
Changes:
- Creates a comprehensive guide covering 32 error codes related to generic type parameters, constraints, and type arguments
- Removes 11 individual error documentation files (9 from
/misc/, 2 from/compiler-messages/) - Adds redirects for all deleted files to the new consolidated documentation
- Updates the TOC to reflect the consolidation
- Removes documented error codes from the "sorry-we-don't-have-specifics" stub file
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| docs/csharp/language-reference/compiler-messages/generic-type-parameters-errors.md | Main consolidated documentation covering 32 error codes organized into 7 thematic sections with examples |
| docs/csharp/misc/cs0401.md | Deleted - moved to consolidated file |
| docs/csharp/misc/cs0405.md | Deleted - moved to consolidated file |
| docs/csharp/misc/cs0449.md | Deleted - moved to consolidated file |
| docs/csharp/misc/cs0450.md | Deleted - moved to consolidated file |
| docs/csharp/misc/cs0451.md | Deleted - moved to consolidated file |
| docs/csharp/misc/cs0454.md | Deleted - moved to consolidated file |
| docs/csharp/misc/cs0455.md | Deleted - moved to consolidated file |
| docs/csharp/misc/cs0706.md | Deleted - moved to consolidated file |
| docs/csharp/misc/cs0717.md | Deleted - moved to consolidated file |
| docs/csharp/language-reference/compiler-messages/cs0702.md | Deleted - moved to consolidated file |
| docs/csharp/language-reference/compiler-messages/cs0703.md | Deleted - moved to consolidated file |
| .openpublishing.redirection.csharp.json | Added 11 redirects for deleted files to consolidated documentation |
| docs/csharp/language-reference/toc.yml | Updated to remove individual error entries and consolidate into single entry with displayName listing all error codes |
| docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md | Removed 4 error codes (CS1961, CS7002, CS8322, CS9011, CS9012) now documented |
docs/csharp/language-reference/compiler-messages/generic-type-parameters-errors.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/generic-type-parameters-errors.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/generic-type-parameters-errors.md
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/generic-type-parameters-errors.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/generic-type-parameters-errors.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/generic-type-parameters-errors.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/generic-type-parameters-errors.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/generic-type-parameters-errors.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/generic-type-parameters-errors.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Fixes #49601
There was an existing file for this topic. In addition, Copilot found several other good candidates for addition to this file, resulting in new consolidation opportunities.
Internal previews