-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusing type error when transforming from OCaml's stdlib Array to RescriptCore.Array #6263
Comments
Self contained: let foo = (x: array<_>) => ()
let x = foo(a => a + 1) |
This is the parse tree (in ml syntax for readability): let foo = ((Function$ (fun (x : _ array) -> ()))[@res.arity 1])
let x = ((foo ((Function$ (fun a -> a + 1))[@res.arity 1]))[@res.uapp ]) |
What's going on is that the |
cristianoc
added a commit
that referenced
this issue
May 24, 2023
cristianoc
added a commit
that referenced
this issue
May 24, 2023
cristianoc
added a commit
that referenced
this issue
May 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minimal example:
Yields the following type error:
Playground Link
The playground comes with
uncurried
set to true.I assume
\"function$"<'a, [#Has_arity1]>
is the internal name for an uncurried callback function?The text was updated successfully, but these errors were encountered: