Skip to content

convert_class_to_enum assist shouldn't keep class modifiersΒ #61189

@parlough

Description

@parlough

The convert_class_to_enum assist currently (tries) to keep class modifiers like final, but that results in a new diagnostic as enum declarations can't have class modifiers.

To avoid this, the assist should likely remove any existing class modifiers.

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-assistIssues with analysis server assiststype-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