I'm learning f#. Considering this function:
let mult (a:decimal) (b:int) : decimal = a * b
When I try to compile I get this error: Error 1 Type constraint mismatch. The type int is not compatible with type decimal
Why the compiler does not accept this?
PS: When I explicity convert it does compile:
let mult (a:decimal) (b:int) : decimal = a * decimal(b)