Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't substitute type generic arguments when don't compare declaring type. #469

Merged
merged 1 commit into from
Jun 9, 2022

Conversation

wwh1004
Copy link
Contributor

@wwh1004 wwh1004 commented May 31, 2022

Fix #468
Also fix similar problems that existed before.

Includes:
Equals(IMethod, MethodBase)
Equals(IField, FieldInfo)
GetHashCode(IMethod)
GetHashCode(IField)
GetHashCode(MethodBase)
GetHashCode(FieldInfo)

Test code:
same as pr #466 but delete 'SigComparerOptions.CompareMethodFieldDeclaringType'

@wtfsck
Copy link
Contributor

wtfsck commented Jun 8, 2022

@CreateAndInject can you test if this fixes your issue?

@CreateAndInject
Copy link
Contributor

@CreateAndInject can you test if this fixes your issue?

Yes, it fixed.

@wtfsck
Copy link
Contributor

wtfsck commented Jun 9, 2022

Thanks, merging it now.

@wtfsck wtfsck merged commit ae6f88f into 0xd4d:master Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Equals but GetHashCode returns different values in #466
3 participants