Description
Since v12.0.0-alpha.6, adding a type annotation to a curried function gives the error This function is a curried function where an uncurried function is expected
:
type fn2 = (int, int) => int
let add : fn2 = (a, b) => a + b
let add5 : int => int = add(5, ...)
/// This function is a curried function where an uncurried function is expected
Metadata
Metadata
Assignees
Labels
No labels