Open MangelMaxime opened 4 months ago
Hi @MangelMaxime, sorry for the delay.
I have no solution for you. We already had those issues with type inference in previous issues ( https://github.com/fsprojects/FsUnit/issues/189 , https://github.com/fsprojects/FsUnit/issues/198 ). I would have suggested what you already encountered and provided in "Known workaround".
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.
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