Skip to content

Swift doesn't support same-type requirements on generics #2

@beccadax

Description

@beccadax

Swift 3 doesn't allow you to put == constraints on extensions of generic types. A future version will, but until then, the workaround is to conform matching types to a protocol and then constrain the extension to match that protocol.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions