Skip to content

Remove 'await' fix should have higher priority than Add 'async' #64302

Description

@FMorschel

I'm doing a refactor where I'm changing some methods from async to non-Future returning versions.

I have await_only_futures enabled on my base. Consider a small case like:

void main() {
  await DateTime.now();
}
Image

Using the first fix would resolve only the first issue, not the second.

CC @bwilkerson

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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) fixestype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions