Skip to content

diagnose-api-breaking-changes reports package-level access modifiers #81003

@Joannis

Description

@Joannis

Description

In a recent Hummingbird PR we've had a package enum containing types of errors we throw. While adding a enum case to this enum, a breaking change was incorrectly reported.

Reproduction

package enum MyError: Error {
  case initialErrorCase
  
  // Added later
  case addedErrorCase
}

Expected behavior

I expect this change not to be reported as breaking.

Environment

Apple Swift version 6.0.3 (swift-6.0.3-RELEASE)
Target: arm64-apple-macosx15.0

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.triage neededThis issue needs more specific labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions