Add C# 9 diagnostics for record types#53507
Open
BillWagner wants to merge 4 commits intodotnet:mainfrom
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds documentation coverage for previously undocumented C# 9 compiler diagnostics related to record types, and wires those diagnostics into navigation and keyword indexing so they no longer appear on the “no specifics” page.
Changes:
- Removes record-related diagnostics from the catch-all “Sorry, we don't have specifics…” list.
- Adds CS8857, CS8869, CS8871, CS8876, and CS8906 to the dedicated “record declarations” compiler-messages article (keywords, summaries, and guidance).
- Updates the C# language reference TOC search/display metadata to include the newly documented diagnostic IDs.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md | Removes diagnostics that are now documented elsewhere. |
| docs/csharp/language-reference/toc.yml | Updates TOC metadata so the record diagnostics are discoverable via the record declarations page. |
| docs/csharp/language-reference/compiler-messages/record-declaration-errors.md | Documents the newly covered record diagnostics and updates keyword metadata accordingly. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Rework one corrective recommendations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #52834
Add the previously undocumented diagnostics for the C# 9
recordtype feature.Internal previews