Skip to content

Create method doesn't consider the expected return type #60306

@FMorschel

Description

@FMorschel

Repro:

void f() {
  var list = <A>[];
  list.where((a) {
    return a.newMethod();
  });
}

class A {}

This should produce bool newMethod() {} but it produces void newMethod() {}.

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