-
Notifications
You must be signed in to change notification settings - Fork 1.7k
avoid_void_async not working as expected #58622
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
Comments
Seems similar to #57769. |
This is not the purview of I think your issue is valid though, if |
Note that this issue has some amount of overlap with dart-lang/language#3715, which is reporting that the inferred return type for In particular, If the static analysis is adjusted such that the inferred return type is |
@scheglov For the presumed inconsistency with the specification in the second paragraph above. (Assuming that "should have" means according to the spec.) |
Oh, I did mean "according to the spec", but the outcome of the discussion in dart-lang/language#3715 could still be "we don't like breaking changes, so let's change the specification to match the current behavior". Also, if the rest of the language team supports changing the behavior to be like the specified behavior then there might have to be a breaking change process. |
Describe the issue
I had a hard to detect bug, where avoid_void_async could help a lot but it did not
Here is code to reproduce:
Here I expect that I can not type async in callback parameter, because it expects void Function() instead of Future Fucntion()
This is intented behaviour or a bug?
Here is my linter rules:
The text was updated successfully, but these errors were encountered: