File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend %s -emit-ir
2
+
3
+ struct MySlice < Base : MyIndexableType > : MyCollectionType { }
4
+ struct MyMutableSlice < Base : MyMutableCollectionType > : MyMutableCollectionType { }
5
+
6
+ protocol MySequenceType { }
7
+ protocol MyIndexableType { }
8
+
9
+ protocol MyCollectionType : MySequenceType , MyIndexableType {
10
+ typealias SubSequence = MySlice < Self >
11
+ func makeSubSequence( ) -> SubSequence
12
+ }
13
+ extension MyCollectionType {
14
+ func makeSubSequence( ) -> MySlice < Self > {
15
+ typealias S = Self
16
+ return MySlice < S > ( )
17
+ }
18
+ }
19
+
20
+ protocol MyMutableCollectionType : MyCollectionType {
21
+ typealias SubSequence = MyMutableSlice < Self >
22
+ }
23
+ extension MyMutableCollectionType {
24
+ func makeSubSequence( ) -> MyMutableSlice < Self > {
25
+ typealias S = Self
26
+ return MyMutableSlice < S > ( )
27
+ }
28
+ }
29
+
You can’t perform that action at this time.
0 commit comments