-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixesIssues with analysis server (quick) fixes
Description
Repro:
class A {
Future<void> m() async {}
}
void foo(A? a) {
a?.m();
if (a != null) {
a.m();
}
a!.m();
}
For all cases above, the first (a?.m()
) doesn't show Wrap with unawaited
, but it does accept Future<void>?
.
This happens no matter if foo
is async
or not, so the problem is with the quick-fix.
Metadata
Metadata
Assignees
Labels
area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixesIssues with analysis server (quick) fixes