@@ -7,42 +7,42 @@ protocol P {
7
7
}
8
8
9
9
// CHECK-LABEL: inferSameShape(ts:us:)
10
- // CHECK-NEXT: Generic signature: <T..., U... where T.shape == U.shape >
10
+ // CHECK-NEXT: Generic signature: <T..., U... where ((T, U)...) : Any >
11
11
func inferSameShape< T... , U... > ( ts t: T ... , us u: U ... ) where ( ( T , U ) . . . ) : Any {
12
12
}
13
13
14
14
// CHECK-LABEL: desugarSameShape(ts:us:)
15
- // CHECK-NEXT: Generic signature: <T..., U... where T : P, T.shape == U.shape , U : P>
15
+ // CHECK-NEXT: Generic signature: <T..., U... where T : P, ((T, U)...) : Any , U : P>
16
16
func desugarSameShape< T... , U... > ( ts t: T ... , us u: U ... ) where T: P , U: P , ( ( T . A , U . A ) . . . ) : Any {
17
17
}
18
18
19
19
// CHECK-LABEL: multipleSameShape1(ts:us:vs:)
20
- // CHECK-NEXT: Generic signature: <T..., U..., V... where T.shape == U.shape, U.shape == V.shape >
20
+ // CHECK-NEXT: Generic signature: <T..., U..., V... where ((T, U)...) : Any, ((U, V)...) : Any >
21
21
func multipleSameShape1< T... , U... , V... > ( ts t: T ... , us u: U ... , vs v: V ... ) where ( ( T , U , V ) . . . ) : Any {
22
22
}
23
23
24
24
// CHECK-LABEL: multipleSameShape2(ts:us:vs:)
25
- // CHECK-NEXT: Generic signature: <T..., U..., V... where T.shape == U.shape, U.shape == V.shape >
25
+ // CHECK-NEXT: Generic signature: <T..., U..., V... where ((T, U)...) : Any, ((U, V)...) : Any >
26
26
func multipleSameShape2< T... , U... , V... > ( ts t: T ... , us u: U ... , vs v: V ... ) where ( ( V , T , U ) . . . ) : Any {
27
27
}
28
28
29
29
// CHECK-LABEL: multipleSameShape3(ts:us:vs:)
30
- // CHECK-NEXT: Generic signature: <T..., U..., V... where T.shape == U.shape, U.shape == V.shape >
30
+ // CHECK-NEXT: Generic signature: <T..., U..., V... where ((T, U)...) : Any, ((U, V)...) : Any >
31
31
func multipleSameShape3< T... , U... , V... > ( ts t: T ... , us u: U ... , vs v: V ... ) where ( ( U , V , T ) . . . ) : Any {
32
32
}
33
33
34
34
// CHECK-LABEL: multipleSameShape4(ts:us:vs:)
35
- // CHECK-NEXT: Generic signature: <T..., U..., V... where T.shape == U.shape, U.shape == V.shape >
35
+ // CHECK-NEXT: Generic signature: <T..., U..., V... where ((T, U)...) : Any, ((U, V)...) : Any >
36
36
func multipleSameShape4< T... , U... , V... > ( ts t: T ... , us u: U ... , vs v: V ... ) where ( ( U , T , V ) . . . ) : Any {
37
37
}
38
38
39
39
// CHECK-LABEL: multipleSameShape5(ts:us:vs:)
40
- // CHECK-NEXT: Generic signature: <T..., U..., V... where T.shape == U.shape, U.shape == V.shape >
40
+ // CHECK-NEXT: Generic signature: <T..., U..., V... where ((T, U)...) : Any, ((U, V)...) : Any >
41
41
func multipleSameShape5< T... , U... , V... > ( ts t: T ... , us u: U ... , vs v: V ... ) where ( ( T , V , U ) . . . ) : Any {
42
42
}
43
43
44
44
// CHECK-LABEL: multipleSameShape6(ts:us:vs:)
45
- // CHECK-NEXT: Generic signature: <T..., U..., V... where T.shape == U.shape, U.shape == V.shape >
45
+ // CHECK-NEXT: Generic signature: <T..., U..., V... where ((T, U)...) : Any, ((U, V)...) : Any >
46
46
func multipleSameShape6< T... , U... , V... > ( ts t: T ... , us u: U ... , vs v: V ... ) where ( ( V , U , T ) . . . ) : Any {
47
47
}
48
48
@@ -55,15 +55,15 @@ struct Ts<T...> {
55
55
56
56
struct Vs < V... > {
57
57
// CHECK-LABEL: Ts.Us.Vs.packEquality()
58
- // CHECK-NEXT: Generic signature: <T..., U..., V... where T == U, T.shape == V.shape >
58
+ // CHECK-NEXT: Generic signature: <T..., U..., V... where T == U, ((T, V)...) : Any >
59
59
func packEquality( ) where T == U , ( ( U , V ) . . . ) : Any {
60
60
}
61
61
}
62
62
}
63
63
}
64
64
65
65
// CHECK-LABEL: expandedParameters(_:transform:)
66
- // CHECK-NEXT: Generic signature: <T..., Result... where T.shape == Result.shape >
66
+ // CHECK-NEXT: Generic signature: <T..., Result... where ((T, Result)...) : Any >
67
67
func expandedParameters< T... , Result... > ( _ t: T ... , transform: ( ( T ) -> Result ) ... ) -> ( Result . . . ) {
68
68
fatalError ( )
69
69
}
0 commit comments