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

Fix bug in HasMatchingParameterTypes #335

Merged
merged 1 commit into from
Mar 25, 2017

Conversation

jeremymeng
Copy link
Contributor

The bug was introduced when replacing the Type.GetMethod(...) call
to the overload with a Type[] parameter since that overload is not
supported in .NET CORE. The correct behavior should be checking for
compatible argument types, instead of strict matching argument types.

Fixes #334 and the test failure in recent build.

The bug was introduced when replacing the `Type.GetMethod(...)` call
to the overload with a `Type[]` parameter since that overload is not
supported in .NET CORE.  The correct behavior should be checking for
compatible argument types, instead of strict matching argument types.
@kzu kzu merged commit c8c5db1 into devlooped:master Mar 25, 2017
stakx added a commit to stakx/moq that referenced this pull request Sep 4, 2018
The check being removed here was introduced by devlooped#335, which fixed a
regression by reproducing type matching logic from the .NET reference
source for `Type.GetMethod(string, BindingFlags, Binder, Type[], ..)`.

This check is likely not needed, and we have no test that demonstrates
why it might be needed.

Removing this special check however will allow us to merge the method
it appears in with other similar methods.
stakx added a commit to stakx/moq that referenced this pull request Sep 4, 2018
The check being removed here was introduced by devlooped#335, which fixed a
regression by reproducing type matching logic from the .NET reference
source for `Type.GetMethod(string, BindingFlags, Binder, Type[], ..)`.

This check is likely not needed, and we have no test that demonstrates
why it might be needed.

Removing this special check however will allow us to merge the method
it appears in with other similar methods.
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.

None yet

2 participants