Skip to content

Add interpolated string handler error diagmostics#51544

Merged
BillWagner merged 5 commits intodotnet:mainfrom
BillWagner:string-interpolation-errors
Feb 6, 2026
Merged

Add interpolated string handler error diagmostics#51544
BillWagner merged 5 commits intodotnet:mainfrom
BillWagner:string-interpolation-errors

Conversation

Build the skeleton for the new file, include the messages from C# 10
Fixes dotnet#51442

This builds a consolidated file for all remaining diagnostics for interpolated strings and interpolated string handlers.
Copy link
Contributor

Copilot AI left a 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 a dedicated compiler-messages article for string interpolation–related diagnostics (including interpolated string handler diagnostics) and updates navigation and the “undocumented errors” list accordingly.

Changes:

  • Add string-interpolations.md covering multiple interpolation- and handler-related diagnostics.
  • Update docs/csharp/language-reference/toc.yml to include the new “String interpolations” entry.
  • Remove newly documented diagnostics from sorry-we-don-t-have-specifics-on-this-csharp-error.md.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md Removes several diagnostic codes that are now documented elsewhere.
docs/csharp/language-reference/toc.yml Adds a TOC entry for the new string interpolation diagnostics article.
docs/csharp/language-reference/compiler-messages/string-interpolations.md New consolidated diagnostics page for string interpolations and interpolated string handlers.
.github/prompts/error-consolidation.md Updates the consolidation prompt’s target file and theme to string interpolations/handlers.

BillWagner and others added 2 commits February 6, 2026 12:41
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@BillWagner BillWagner merged commit 2fb23a5 into dotnet:main Feb 6, 2026
9 checks passed
@BillWagner BillWagner deleted the string-interpolation-errors branch February 6, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C# 10 diagnostics] Interpolated string handlers, interpolated strings

2 participants