Closed Macil closed 7 years ago
Oh, Kefir is an object rather than a class... is Flow silently treating the subsequent combine
property definitions as redefinitions instead of something like method overloads?
@AgentME I can't find where now, but earlier today I read that duplicate properties in object declarations simply override previous ones. Overloading only works in class declarations.
EDIT: found it: https://github.com/facebook/flow/issues/1556#issuecomment-200051475
A new version of the library Kefir added two new overloads of the Kefir.combine method which take an object, and now Flow complains if I pass an array. Here's a stripped down example:
and the error:
Running Flow v0.37.4
Commenting out the last two new overloads makes Flow not give an error.