[analyzer] False positives for discarded_futures when passing future-returning function call as an argument #59151
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-devexp
Developer Experience related issues (DevTools, IDEs, Analysis Server, completions, refactoring, etc)
linter-false-positive
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Issue encountered while using austerity package, when passing a future function as parameter it wrongfully marks it as an discared_future issue, an example using flutter is provided below. For background on the issue already raised with austerity see this issue.
Looking at the priorities file this should be marked as a p2 issue, as mentioned in the other thread this is fixed by ignoring the rule for this line. I also did not find any other issues on this fact.
An example of code generating a false positive would be:
The text was updated successfully, but these errors were encountered: