Skip to content

Add await quick-fix false-positive #61086

Open
@FMorschel

Description

@FMorschel

Add discarded_futures to analysis_options.yaml or unawaited_futures and async to foo:

Repro:

class A {
  Future<void> m() async {}
}

class B {
  B(this.a);
  final A a;
}

void foo(B b) {
  final _ = b.a..m(); // m() triggers
  final _ = b..a.m(); // m() triggers
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions