Add missing diagnostics for target-typed new and source generators#53867
Open
BillWagner wants to merge 11 commits into
Open
Add missing diagnostics for target-typed new and source generators#53867BillWagner wants to merge 11 commits into
BillWagner wants to merge 11 commits into
Conversation
The Source generator errors were already covered in the article, but weren't present in the front matter.
Search for other related daignosticss that haven't het been added.
Incorporate new diagnostics in the consolidated sections.
Align messages with the roslyn output.
Contributor
There was a problem hiding this comment.
Pull request overview
Closes the gap for several previously undocumented C# diagnostics by adding a new article covering new/object-creation errors (CS0144, CS0712, CS1526, CS8181, CS8386, CS8752, CS8753, CS8754) and expanding the source generator/analyzer errors article with CS8032–CS8040, CS8700, CS8784/CS8785, and CS8850. Old per-error stub pages are removed (with redirects added), and the f1 keyword landing page and TOC are updated accordingly.
Changes:
- Add new compiler-messages article for
newexpressions and object creation, and expand the source generator article with analyzer/source-generator compatibility and source generator failure sections. - Remove obsolete CS0144/CS0712/CS1526 misc stubs, update
toc.yml, and add redirects in.openpublishing.redirection.csharp.json. - Remove migrated f1_keywords entries from the "sorry, we don't have specifics" landing page.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| docs/csharp/language-reference/compiler-messages/new-and-object-creation-errors.md | New article documenting eight new-related diagnostics. |
| docs/csharp/language-reference/compiler-messages/source-generator-errors.md | Adds analyzer/SG compatibility and SG failure sections covering CS8032–CS8850. |
| docs/csharp/language-reference/toc.yml | Adds new TOC entry; removes entries for deleted misc pages; expands SG displayName. |
| docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md | Removes f1 keywords now covered by the new articles. |
| docs/csharp/misc/cs0144.md, cs0712.md, cs1526.md | Deleted in favor of the consolidated article. |
| .openpublishing.redirection.csharp.json | Adds redirects for the three deleted pages. |
Fix filename and dead links.
gewarren
approved these changes
May 15, 2026
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 #53548
In addition, collect any related diagnostics on these topics.
Internal previews
newexpressions and object creation