discarded_futures
not lints inside a function that is inside unawaited
#59204
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-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: