f# - Error on FsUnit example -


i copied example fsunit project page:

open nunit.framework open fsunit let [<test>] trivial () = 1 |> should not (equal 2) 

f# gives me following error:

error 2 expression expected have type bool here has type constraints.equalconstraint

error 1 type 'bool' not compatible type 'constraints.constraint'

what doing wrong?

a newer version of fsunit includes change renames fsunit.not function fsunit.not'. should eliminate conflict built-in not function. can latest version nuget gallery. examples of use can found on fsunit github site.

let me know if still see issue. i'll happy more in-depth troubleshooting you.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -