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

Add test from #343 to regression test suite #907

Merged
merged 1 commit into from
Aug 25, 2019

Conversation

stakx
Copy link
Contributor

@stakx stakx commented Aug 25, 2019

which demonstrates that Moq no longer cares (because of #904) about the precise return type of methods if they otherwise match. This enables some scenarios involving generic methods that previously weren't supported.

(It seems correct that Moq no longer tries to match method's return types exactly. While technically not incorrect, it is unusual behavior for most people coming from VB.NET or C#, where the return type is not
considered part of the method signature WRT method resolution.)

Closes #906.

/cc @oddbear who originally came up with that test

which demonstrates that Moq no longer cares about the precise return
type of methods if they otherwise match. This enables some scenarios
involving generic methods that previously weren't supported.

(It seems correct that Moq no longer tries to match method's return
types exactly. While technically not incorrect, it is unusual behavior
for most people coming from VB.NET or C#, where the return type is not
considered part of the method signature WRT method resolution.)
@stakx stakx added this to the 4.13.0 milestone Aug 25, 2019
@stakx stakx merged commit 9c5209e into devlooped:master Aug 25, 2019
@stakx stakx deleted the method-binding branch August 25, 2019 12:27
@devlooped devlooped locked and limited conversation to collaborators Sep 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New method matching algorithm introduces behavioral change wrt return types
1 participant