-
Notifications
You must be signed in to change notification settings - Fork 79
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
[NUnit] Non provided generics is inferred to obj
making test fails
#274
Comments
Hi @MangelMaxime, I have no solution for you. We already had those issues with type inference in previous issues ( #189 , #198 ). Have a wonderful day. |
Hello @CaptnCodr, If you think there is no solution or way to warn about it then we can close this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I am testing an API which returns
Result<'Success, 'Error>
, my problem is that type inference is not fully propagating to the type making it resolved the unknown generic toobj
instead of the correct type.This makes the tests fails, and the cause of the failure is not obvious when looking at the message:
Repro steps
Expected behavior
The test should pass.
Actual behavior
Test is failing
Known workarounds
If you enforce the type then the test pass:
Related information
The text was updated successfully, but these errors were encountered: