Skip to content

[SR-7942] Automatic conformance for tuples with Equatable member types #50477

@swift-ci

Description

@swift-ci
Previous ID SR-7942
Radar None
Original Reporter rob.nadin.dyson (JIRA User)
Type New Feature
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s
Labels New Feature
Assignee None
Priority Medium

md5: 6f103116649503ada218e511bbd6d931

duplicates:

  • SR-1222 A tuple of Equatable types should be Equatable

Issue Description:

It would make sense that a tuple where all of its member types that conform to the Equatable protocol should also be protocol. Currently Equatable is automatically synthesised for conforming types by the compiler, so a tuple that contains multiple conforming types to Equatable should also itself by Equatable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EquatableArea → standard library: The `Equatable` protocolcompilerThe Swift compiler itselfconditional conformancesFeature → protocol → conformances: conditional conformancesconformancesFeature → protocol: protocol conformancesderived conformancesFeature → protocol → conformances: derived conformances aka synthesized conformancesfeatureA feature request or implementationswift evolution proposal neededFlag → feature: A feature that warrants a Swift evolution proposaltuplesFeature: tuplestypesFeature: types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions