Skip to content

Add DelegateDataFlow tests for DynamicallyAccessedMembers analysis on delegate fields/properties - #126918

Draft
jtschuster with Copilot wants to merge 4 commits into
mainfrom
copilot/add-dynamically-accessed-members-tests
Draft

jtschuster with Copilot wants to merge 4 commits into
mainfrom
copilot/add-dynamically-accessed-members-tests

Conversation

Copilot AI commented Apr 14, 2026 •

Copy link
Copy Markdown
Contributor
  • Create DelegateDataFlow.cs test case file with tests for DAM analysis on delegate fields, properties, and invocation
  • Add corresponding test entry in DataFlowTests.cs for the Roslyn analyzer
  • Fix all ExpectedWarning attributes to match actual ILLink warning messages (use "Invoke" not field/property names)
  • Remove dead GenericDelegateWithAnnotatedTypeParameter class (DAM on generic type params doesn't propagate to Invoke)
  • Fix formatting to match sibling test conventions (4 spaces, no space before parens)
  • ILLink trimmer tests — PASSED
  • Roslyn analyzer tests — PASSED
  • NativeAOT — uses same shared test infrastructure; infrastructure requires aotsdk build artifacts
  • Run parallel validation — Code Review ✅, CodeQL ✅

Copilot AI review requested due to automatic review settings April 14, 2026 23:11
Copilot AI removed the request for review from Copilot April 14, 2026 23:11
@dotnet-policy-service dotnet-policy-service Bot added the linkable-framework Issues associated with delivering a linker friendly framework label Apr 14, 2026
Copilot AI requested a review from jtschuster April 14, 2026 23:12
@github-actions github-actions Bot added the area-Tools-ILLink .NET linker development as well as trimming analyzers label Apr 14, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/illink
See info in area-owners.md if you want to be subscribed.

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

area-Tools-ILLink .NET linker development as well as trimming analyzers linkable-framework Issues associated with delivering a linker friendly framework

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants