Skip to content

Swift won't allow protocol extension methods to be more public than the protocol #4

@beccadax

Description

@beccadax

Swift rejects things like this:

private protocol _SQLQuery {}
extension _SQLQuery {
   public var startIndex: Int {  }
}

That's a problem when you want the methods to be used to satisfy a conformance.

I need to figure out whether this is a known issue or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions