Skip to content

Create members getter doesn't calculate the expected type from a switch expression #62108

@FMorschel

Description

@FMorschel

Repro:

class A {
  void foo() {
    int v = switch (1) {
      _ => getter,
    };
  }
}

I'll take a look at this one.

CC @bwilkerson @srawlins

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions