-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cannot call map
from Ramda with same arity but different signatures
#101
Comments
@rjmk will check tonight. Let me know if you have ideas about the possible reason |
@alexeygolev I will do some research on Flow / the links on the inference algorithm you left on the PR. At the moment I'm pretty in the dark about all of this! |
@rjmk by the way what do you mean by "flow will blow up"? |
@rjmk can't reproduce or I'm not understanding the problem correctly. If I change the type of object values to |
@alexeygolev Sorry, horrendous of me not to paste the error output. My issue was that in the type checking error message, it would only consider the members of Now, however, I also cannot reproduce. But not could I reproduce when changing the type of object values to Appears to be anomalous. Sorry for dragging you into that, @alexeygolev |
The way the typings for
map
in Ramda currently work, if you try and callmap
in two places with the same arity (arguments passed one-by-one, or both at once), but different type arguments (array, object, functor), Flow will blow up.For example, try adding
below here
and running the tests
cc/ @alexeygolev
The text was updated successfully, but these errors were encountered: