discarded_futures
not lints inside a function that is inside unawaited
#59204
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
devexp-linter
Issues with the analyzer's support for the linter package
linter-false-negative
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Describe the issue
When async function wrapped into
unawaited
, thediscarded_futures
not lints inside the wrapped function. In this exampleactivate
should linted because if not awaited, the try-catch will not catch the exception.To Reproduce

Expected behavior
activate
function is linted in unawaitedThe text was updated successfully, but these errors were encountered: