aph5
aph5

Reputation: 791

F# type inferrence issue

I have experienced the following problem while writing a test. Please find a picture bellow.

enter image description here

If I create validateGameExistance function in the unit test project then it works fine.

How could it be solved?

Upvotes: 0

Views: 81

Answers (1)

Tomas Petricek
Tomas Petricek

Reputation: 243041

It is hard to give a definite answer (based just on the screenshot), but you can get this kind of error when some of the types involved in the type error are defined in multiple places (so, the type name would look the same, but they would actually be different types in different assemblies).

For example, if the Result<T> type is defined in multiple projects and the function you're calling returns one of them, but your annotation is referring to another one.

Upvotes: 5

Related Questions