Skip to content

Address RDG delegate cast review concerns from #70780 - #11

Draft
irfanajaffer wants to merge 1 commit into
69755_RDGIssuefrom
bc/022a8b83-validate-verify
Draft

irfanajaffer wants to merge 1 commit into
69755_RDGIssuefrom
bc/022a8b83-validate-verify

Conversation

@irfanajaffer

Copy link
Copy Markdown
Owner

Address RDG delegate cast review concerns from dotnet#70780

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making.

Address delegate ambiguity, null tasks, and whole-struct test isolation.

Description

Follow-up fixes for dotnet#70780:

  • Validate that emitted named-delegate casts resolve to the original symbol. Report RDG002 when assembly ambiguity prevents faithful emission.
  • Throw InvalidOperationException for null Task returns in filtered handlers, matching the unfiltered path.
  • Isolate the whole-struct assignment regression test by removing independent field writes.

Testing

  • Built Microsoft.AspNetCore.Http.Extensions.Tests successfully with zero warnings/errors.
  • Ran focused MapGet_DelegateCast_ suite: 85 passed, zero failed.
  • Reproduced ambiguous-cast compilation failure and missing null-task exception before fixes.
  • Confirmed whole-struct regression fails with detection temporarily disabled and passes when restored.
  • Full repository suite not run.

No public API changes.


📍 Bold Create session · 👤 Requested by @irfanajaffer · 🤖 Bold Create Agent

Co-authored-by: irfanajaffer <93319208+irfanajaffer@users.noreply.github.com>
Bold-Create-Session: https://app.boldcreate.ai/agent/chat/?threadId=022a8b83-088a-4b02-ac73-aa2ddfaebbf5

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant