Closed
Description
Minimal example:
open RescriptCore
let arr = [1,2,3]
Array.map((a) => a + 1, arr)
Yields the following type error:
[E] Line 5, column 10:
This has type: \"function$"<'a, [#Has_arity1]>
Somewhere wanted: array<'b>
The playground comes with uncurried
set to true.
I assume \"function$"<'a, [#Has_arity1]>
is the internal name for an uncurried callback function?
Metadata
Metadata
Assignees
Labels
No labels