Open
Description
Previous ID | SR-1222 |
Radar | rdar://problem/13822406 |
Original Reporter | svanimpe (JIRA User) |
Type | New Feature |
Attachment: Download
Environment
Xcode 7.3
Additional Detail from JIRA
Votes | 11 |
Component/s | Compiler |
Labels | New Feature |
Assignee | None |
Priority | Medium |
md5: 737b988db4d23991ee46fada4989dfd8
is duplicated by:
- SR-1997 Tuples with optional parameter aren't equatable
- SR-4191 Compiler cannot resolve equatable tuples if they are an associatedtype of a protocol
- SR-6355 Tuples of Equatable should be Equatable
- SR-6802 Tuples of Equatable types aren't Equatable
- SR-7942 Automatic conformance for tuples with Equatable member types
relates to:
- SR-8281 enums with associated tuple values can not automatically implement Equatable
- SR-9925 Void is not equatable (enum cases with Void associated values can't auto-synthesise Equatable)
Issue Description:
As the attached screenshots show: the method `contains(_: Self.Generator.Element) -> Bool` is not available for arrays of tuples. Its counterpart that takes a predicate is available. The same is true for the `indexOf` methods.
Metadata
Metadata
Assignees
Labels
Area → standard library: The `Equatable` protocolThe Swift compiler itselfFeature → protocol → conformances: conditional conformancesFeature → protocol: protocol conformancesFeature → protocol → conformances: derived conformances aka synthesized conformancesA feature request or implementationFlag → feature: A feature that warrants a Swift evolution proposalFeature: tuplesFeature: types