Skip to content

New feature: Detect EnumCaseAdded as a BC break #767

@bdsl

Description

@bdsl

As far as I can tell this isn't something currently detected, but I think adding a new enum case should be considered a breaking change, as it will break any consuming code that was previously relying on being able to exhaustively handle all cases of an enum.

For instance consuming code will often use match with an enum, which will throw UnhandledMatchError if the enum cases is a new one.

Would people be interested in a PR to implement this check?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions