When I try to create some class like
type MyType () =
let func<'T> () = ()
The compiler says that there's an error:
Explicit type parameters may only be used on module or member bindings
But the MSDN says:
A let binding at the module level, in a type, or in a computation expression can have explicit type parameters. A let binding in an expression, such as within a function definition, cannot have type parameters.
Why documentation and compiler say different things?
let
probably needs to bemember
. - leppie