Repository navigation
Yet another diagnostic pr - #56641
Open
BillWagner wants to merge 7 commits into
Open
BillWagner wants to merge 7 commits into
BillWagner wants to merge 7 commits into
Conversation
Create the stubs for nameof expression diagnostics.
Add additional existing comments.
Finished step 3.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The replacement drops useful CS8070 diagnostic examples and leaves a longer sample outside snippet compilation with an undeclared number.
2 open issues
What changed in this PR
This PR addresses #56418 by adding focused nameof diagnostic guidance and consolidating jump-statement diagnostics into their shared reference article.
Changes:
- Add coverage for four
nameofdiagnostics and remove seven stale catch-all entries. - Consolidate six standalone diagnostic articles into
jump-statement-errors.md. - Update TOC entries, diagnostic metadata, and redirects for retired pages.
| File | Description |
|---|---|
docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md |
Remove seven diagnostics with specific article owners. |
docs/csharp/misc/cs0164.md |
Retire the unused-label warning article. |
docs/csharp/misc/cs0162.md |
Retire the unreachable-code warning article. |
docs/csharp/misc/cs0158.md |
Retire the label-shadowing error article. |
docs/csharp/misc/cs0157.md |
Retire the finally-block exit error article. |
docs/csharp/misc/cs0140.md |
Retire the duplicate-label error article. |
docs/csharp/language-reference/toc.yml |
Add nameof navigation and update consolidated diagnostic entries. |
docs/csharp/language-reference/compiler-messages/nameof-errors.md |
Add diagnostic descriptions and remediation for nameof. |
docs/csharp/language-reference/compiler-messages/jump-statement-errors.md |
Expand coverage and reorganize control-flow guidance. |
docs/csharp/language-reference/compiler-messages/cs8070.md |
Retire the standalone final-switch-section error article. |
.openpublishing.redirection.csharp.json |
Redirect six retired articles to the consolidated page. |
Review effort: Balanced
gewarren
approved these changes
Oct 30, 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 #56418
Internal previews
Build report