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


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

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