Skip to content

Add ILLink coverage for unused virtual method annotations#130640

Draft
jtschuster with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-ilink-warnings-unused-code
Draft

Add ILLink coverage for unused virtual method annotations#130640
jtschuster with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-ilink-warnings-unused-code

Conversation

Copilot AI commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

ILLink should validate virtual annotation mismatches only for retained implementations, avoiding IL2046/IL2092 warnings from unused code.

  • Coverage
    • Completely unused implementation
    • Type-only reference
    • Used implementation that must warn
    • Used interface with an unused sibling implementation

Co-authored-by: jtschuster <36744439+jtschuster@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot July 13, 2026 19:44
@dotnet-policy-service dotnet-policy-service Bot added the linkable-framework Issues associated with delivering a linker friendly framework label Jul 13, 2026
Copilot AI changed the title [WIP] Fix ILLink warnings for virtual method annotations on unused code Add ILLink coverage for unused virtual method annotations Jul 13, 2026
Copilot AI requested a review from jtschuster July 13, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Infrastructure linkable-framework Issues associated with delivering a linker friendly framework

Projects

Status: No status
Status: No status

Development

Successfully merging this pull request may close these issues.

ILLink warns for virtual method annotations on unused code

2 participants