We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13c1352 commit 32feec7Copy full SHA for 32feec7
test/Generics/sr15792_1.swift
@@ -0,0 +1,15 @@
1
+// RUN: %target-typecheck-verify-swift %s
2
+
3
+protocol Collection {
4
+ associatedtype SubSequence: Collection
5
+}
6
7
+protocol BidirectionalCollection: Collection where SubSequence: BidirectionalCollection {}
8
9
+struct Slice<Base : Collection> : Collection {
10
+ typealias SubSequence = Slice<Base>
11
12
13
+extension Slice: BidirectionalCollection where Base : BidirectionalCollection {}
14
15
+protocol SlicedCollection: BidirectionalCollection where SubSequence == Slice<Self> {}
0 commit comments