[Solved] F# and type inference: “int list” does not support “+” [closed]

[ad_1]

Adding a 0 to the end of the declaration helped the compiler infer the return type of the sum function:

let mult a b = a * b 
let sum a b = a + b + 0 

1

[ad_2]

solved F# and type inference: “int list” does not support “+” [closed]