Open AndrewSouthpaw opened 6 years ago
@AndrewSouthpaw this makes sense to me, because the current definition of difference
is not a curried function.
declare function difference<T>(
xs1: Array<T>,
...rest: Array<void>
): (xs2: Array<T>) => Array<T>;
declare function difference<T>(xs1: Array<T>, xs2: Array<T>): Array<T>;
Come to think of it, even our manually curried functions we've been adding won't work with __
either. For future PRs I make, I'll be sure to make the functions a CurriedFunction
.
@LoganBarnett
I've been inconsistently running into issues with
__
where flow thinks its presence means the function is actually being invoked. So a simple example:When I run flow this way, I get:
Inexplicably I can't replicate this in Flow Try.
Anyone else encounter such strange behavior?