We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using the following syntax (which has worked until recent flow update), I get an incompatible-call error:
incompatible-call
const foo: (a: number, b?: number) => number = (a, b = 100) => Math.min(a, b);
This syntax, however, works:
const foo = (a: number, b?: number = 100): number => Math.min(a, b);
But these two syntaxes should be equivalent, right?
Try: https://flow.org/try/#0MYewdgzgLgBAZiEMC8MAUBDAXDMBXAWwCMBTAJwBoYiB+HfY8lGARgAY2BKew0slAHwwAshigALAHQEAlmExUinANwAoVaEiwiGMjkw9GlanVy9ynQWaPMF1Zuy5XRE6XLtK1G8NGoYAXvrY1nyKhnyWyEIMfLYYipFCLlKy8vHUKqpAA
The text was updated successfully, but these errors were encountered:
58e8c7a
SamChou19815
No branches or pull requests
Using the following syntax (which has worked until recent flow update), I get an
incompatible-call
error:This syntax, however, works:
But these two syntaxes should be equivalent, right?
Try:
https://flow.org/try/#0MYewdgzgLgBAZiEMC8MAUBDAXDMBXAWwCMBTAJwBoYiB+HfY8lGARgAY2BKew0slAHwwAshigALAHQEAlmExUinANwAoVaEiwiGMjkw9GlanVy9ynQWaPMF1Zuy5XRE6XLtK1G8NGoYAXvrY1nyKhnyWyEIMfLYYipFCLlKy8vHUKqpAA
The text was updated successfully, but these errors were encountered: