rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

Check if `->` works for uncurried functions.

Open cristianoc opened this issue 3 years ago • 1 comments

https://github.com/rescript-lang/rescript-compiler/pull/5585#issuecomment-1193084813

cristianoc avatar Jul 23 '22 08:07 cristianoc

Does not seem to work:

let curried = (x, y) => x + y

let uncurried = (. x, y) => x + y

let c = 3->curried(4)

let uc = (3)->uncurried(. 4) // This function expected 2 arguments, but got 1

cristianoc avatar Sep 07 '22 12:09 cristianoc