Yes, you need parens, like:

let x : (int, string) Either = Left 42

You'll get an OCaml-compat warning using this syntax. Prefer Either<int,string>.

By on 6/16/2009 9:33 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper