File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -418,8 +418,7 @@ extension LazyCollectionProtocol
418
418
Self : ${ collectionForTraversal ( traversal) } ,
419
419
Elements : ${ collectionForTraversal ( traversal) } ,
420
420
% end
421
- ${ constraints % { 'Base': 'Elements. '} } ,
422
- Element == Elements . Element {
421
+ ${ constraints % { 'Base': 'Elements. '} } {
423
422
/// A concatenation of the elements of `self`.
424
423
public func joined( ) - > LazyCollection< ${ Collection} < Elements>> {
425
424
return ${ Collection} ( elements) . lazy
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public protocol LazyCollectionProtocol
29
29
/// possibly with a simpler type.
30
30
///
31
31
/// - See also: `elements`
32
- associatedtype Elements : Collection = Self
32
+ associatedtype Elements : Collection = Self where Elements . Element == Element
33
33
}
34
34
35
35
/// When there's no special associated `Elements` type, the `elements`
You can’t perform that action at this time.
0 commit comments