-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
False-positive of arrow-parens with generic arrow function #344
Comments
Fix would be welcome. |
🎉 This issue has been resolved in version 3.12.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Still getting this problem on |
Please raise a PR with a broken test case. |
@gajus Question about writing tests: is the assumption that we always be targeting the latest version of flow, and changes to the Flow API are supposed to be handled in future PRs? I don't see any way to target specific versions of flow. After 90 minutes, I'm totally at a loss of how to reproduce the error in the tests. I've ruled out an interaction with other plugins in my own project, and I've copy-pasted a few examples that fail in my project and it doesn't show an error in the tests. The issue only comes up when defining functions that use Generics, and usually only when those functions are defined as arguments to other functions. Using the I'm prepared to leave this for now and move on to other things. But if you happen have any advice for why the tests might have different results than an actual project, I would be eager to try some more experiments to try and nail down why this is happening. |
That is correct.
If you can produce a minimal repository for replicating the issue, that would be enough. |
I am getting:
which doesn't seem right. Applying fix results in invalid code:
Workaround is rewrite arrow function to classic function.
The text was updated successfully, but these errors were encountered: