-
Notifications
You must be signed in to change notification settings - Fork 6k
Add C# errors introduced in C# 12 to appropriate files #49377
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
Put the errors and the messages in one file for triage and moving into correct themes.
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 C# 12 compiler error codes to their appropriate documentation files based on the features they relate to. The changes remove these error codes from the generic "catch-all" file and distribute them to specific error documentation files where they can be properly documented with context.
- Removes 12 CS9xxx error codes from the generic error page
- Adds these error codes to 6 specialized documentation files
- Updates the table of contents to reflect the new error code locations
Reviewed Changes
Copilot reviewed 7 out of 7 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 |
Removes 12 error codes that are now documented elsewhere, keeping only 3 that belong in the generic file |
toc.yml |
Updates displayName lists to include newly categorized error codes in their respective sections |
source-generator-errors.md |
Adds 5 interceptor-related error codes (CS9231-CS9235) with detailed documentation |
ref-modifiers-errors.md |
Adds CS9205 for interpolated string syntax errors |
lambda-expression-errors.md |
Adds CS9236 informational message for lambda binding performance |
inline-array-errors.md |
Adds CS9125 for inline array attribute parameter validation |
array-declaration-errors.md |
Adds 5 collection expression error codes (CS9212-CS9215, CS9222) |
docs/csharp/language-reference/compiler-messages/source-generator-errors.md
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/lambda-expression-errors.md
Show resolved
Hide resolved
…sion-errors.md Co-authored-by: Copilot <[email protected]>
…into csharp-12-errors
docs/csharp/language-reference/compiler-messages/array-declaration-errors.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/array-declaration-errors.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/ref-modifiers-errors.md
Outdated
Show resolved
Hide resolved
docs/csharp/language-reference/compiler-messages/ref-modifiers-errors.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Meaghan Osagie (Lewis) <[email protected]>
Co-authored-by: Meaghan Osagie (Lewis) <[email protected]>
Co-authored-by: Meaghan Osagie (Lewis) <[email protected]>
Contributes to #45118
These compiler errors and warnings were based on features already added to grouped files. Add these there as well.
Internal previews