Skip to content
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

Misleading error message for not adding =? for the function labeled argument #6692

Open
DZakh opened this issue Mar 22, 2024 · 1 comment
Open

Comments

@DZakh
Copy link
Contributor

DZakh commented Mar 22, 2024

image

The error says:

This function should have type
  (
~estimatedRetailPrice: Money.t=?,
~mileage: Vehicle.Mileage.t,
) => (~onSuccess: unit => unit, ~onFailure: string => unit) => unit
but its first argument is labelled ~estimatedRetailPrice

But what it actually wants is for me to add =? after ~estimatedRetailPrice as _.

@zth
Copy link
Collaborator

zth commented Mar 22, 2024

Let me know if you're interested in taking a stab at it, we could throw some ideas around on how to make it better and where the actual code is located?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants