Skip to content

Missing Create getter/Create field fixes for static enum access #61911

@FMorschel

Description

@FMorschel

From #61847 (comment):

But the most intriguing for me was:

enum E { a } void f(E e) { f(E.b); f(.b); }

[T]he dot-shorthand property access has all:

  • Change to 'a'
  • Add enum constant
  • Create getter
  • Create field

But the E.b access only has the first two.

My guess is that the fixes are not in the list for the diagnostic in question.

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