[stdlib] Adopt primary associated types in the stdlib

This commit is contained in:
Karoy Lorentey
2022-05-09 18:06:17 -07:00
parent 6a08f1498a
commit 7a7ebd8970
17 changed files with 31 additions and 30 deletions

View File

@@ -30,7 +30,7 @@
/// collection, either the index for your custom type must conform to the
/// `Strideable` protocol or you must implement the `index(_:offsetBy:)` and
/// `distance(from:to:)` methods with O(1) efficiency.
public protocol RandomAccessCollection: BidirectionalCollection
public protocol RandomAccessCollection<Element>: BidirectionalCollection
where SubSequence: RandomAccessCollection, Indices: RandomAccessCollection
{
// FIXME: Associated type inference requires these.