Skip to content

fixes validation of stubbed methods#125224

Draft
adrianoc-unity3d wants to merge 1 commit intodotnet:mainfrom
Unity-Technologies:fix_stubed_method_comparison
Draft

fixes validation of stubbed methods#125224
adrianoc-unity3d wants to merge 1 commit intodotnet:mainfrom
Unity-Technologies:fix_stubed_method_comparison

Conversation

@adrianoc-unity3d
Copy link

The conversion of arrays of strings to a HashSet was removing duplicates. This would lead to false positives when comparing the result of stubbing a method with 2 or more locals of the same type since both the expectation as
well the actual values would contain a single entry.

The same issue was present when comparing method instructions.

The convertion of arrays of strings
to a HashSet<string> was removing duplicates. This
would lead to false positives when comparing the
result of stubbing a method with 2 or more locals
of the same type since both the expectation as
well the actual values would contain a single
entry.
@dotnet-policy-service dotnet-policy-service bot added linkable-framework Issues associated with delivering a linker friendly framework community-contribution Indicates that the PR has been added by a community member labels Mar 5, 2026
@github-actions github-actions bot added the area-Tools-ILLink .NET linker development as well as trimming analyzers label Mar 5, 2026
@dotnet-policy-service
Copy link
Contributor

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

@adrianoc-unity3d
Copy link
Author

@dotnet-policy-service agree company="Unity Technologies"

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 community-contribution Indicates that the PR has been added by a community member linkable-framework Issues associated with delivering a linker friendly framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant