Open
Description
Describe the issue
unawaited_futures
not linting with FutureOr
To Reproduce
Add the lint to analysis_options.yaml
and run the following:
void main() async {
futureOrFunc(); //Nothing
futureFunc(); //Linted
}
Future<void> futureFunc() async {}
FutureOr<void> futureOrFunc() async {}
Expected behavior
I expected the linter to warn me about FutureOr Function
s so that I only process things after the previous lines have been processed.
Metadata
Metadata
Assignees
Labels
A lower priority bug or feature requestFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.Issues with the analyzer's support for the linter packageIssues related to lint rules that fail to report a problem.Incorrect behavior (everything from a crash to more subtle misbehavior)