Skip to content

Fix return type equivalency checking#977

Open
JMolenkamp wants to merge 2 commits into
nsubstitute:mainfrom
JMolenkamp:fix-974
Open

Fix return type equivalency checking#977
JMolenkamp wants to merge 2 commits into
nsubstitute:mainfrom
JMolenkamp:fix-974

Conversation

@JMolenkamp

Copy link
Copy Markdown
Contributor

Do not use areAssignable when comparing generic argument types in an equivalency check for return types.

Closes #974

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.

Configuring two returns on the same generic method with inheritance-related type arguments throws InvalidCastException

1 participant