Does F# have the same problem as C# where you can\'t directly use arithmetic operators with generic T types?
Can you write a generic Sum function that would return t
You could do something like this.
let inline sum<'a when 'a : (static member (+) : 'a -> 'a -> 'a)> a b = a + b let result = sum 3 4
However if I try let result = sum 3 4 I get the error "type ambiguity inherent in the use of the operator '( + )'"
let result = sum 3 4
"type ambiguity inherent in the use of the operator '( + )'"