Skip to content

fixes validation of stubbed methods#125224

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

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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@adrianoc-unity3d
Copy link
Copy Markdown
Contributor Author

we found some issues with these changes; we'll open another PR with more changes from a different branch.

@github-actions github-actions Bot locked and limited conversation to collaborators Apr 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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