Skip to content

Fix ILVerify validation for delegates with boxed value type targets - #132667

Open
pkuyo wants to merge 1 commit into
dotnet:mainfrom
pkuyo:fix-ilverify-96695
Open

Fix ILVerify validation for delegates with boxed value type targets#132667
pkuyo wants to merge 1 commit into
dotnet:mainfrom
pkuyo:fix-ilverify-96695

Conversation

@pkuyo

@pkuyo pkuyo commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #96695

Preserve the target StackValue when validating closed delegates so ILVerify recognizes boxed value types as object references.
Add tests for System.Object and interface methods on boxed value types.

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Aug 23, 2026
@github-actions github-actions Bot added the area-Tools-ILVerification Issues related to ilverify tool and IL verification in general label Aug 23, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

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

Labels

area-Tools-ILVerification Issues related to ilverify tool and IL verification in general community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ILVerification fails unexpected on delegate construction with instance method

1 participant