@@ -7,26 +7,26 @@ protocol P {
77
88// Anything that mentions 'T : P' minimizes to 'U : P'.
99
10- // expected-warning@+2 {{redundant conformance constraint 'U': 'P'}}
11- // expected-note@+1 {{conformance constraint 'U': 'P' implied here}}
10+ // expected-warning@+2 {{redundant conformance constraint 'U' : 'P'}}
11+ // expected-note@+1 {{conformance constraint 'U' : 'P' implied here}}
1212func oneProtocol1< T, U> ( _: T , _: U ) where T : P , U : P , T. X == U , U. X == T { }
1313// CHECK-LABEL: oneProtocol1
1414// CHECK: Generic signature: <T, U where T : P, T == U.X, U == T.X>
1515
16- // expected-warning@+2 {{redundant conformance constraint 'U': 'P'}}
17- // expected-note@+1 {{conformance constraint 'U': 'P' implied here}}
16+ // expected-warning@+2 {{redundant conformance constraint 'U' : 'P'}}
17+ // expected-note@+1 {{conformance constraint 'U' : 'P' implied here}}
1818func oneProtocol2< T, U> ( _: T , _: U ) where U : P , T : P , T. X == U , U. X == T { }
1919// CHECK-LABEL: oneProtocol2
2020// CHECK: Generic signature: <T, U where T : P, T == U.X, U == T.X>
2121
22- // expected-warning@+2 {{redundant conformance constraint 'U': 'P'}}
23- // expected-note@+1 {{conformance constraint 'U': 'P' implied here}}
22+ // expected-warning@+2 {{redundant conformance constraint 'U' : 'P'}}
23+ // expected-note@+1 {{conformance constraint 'U' : 'P' implied here}}
2424func oneProtocol3< T, U> ( _: T , _: U ) where T : P , T. X == U , U : P , U. X == T { }
2525// CHECK-LABEL: oneProtocol3
2626// CHECK: Generic signature: <T, U where T : P, T == U.X, U == T.X>
2727
28- // expected-warning@+2 {{redundant conformance constraint 'U': 'P'}}
29- // expected-note@+1 {{conformance constraint 'U': 'P' implied here}}
28+ // expected-warning@+2 {{redundant conformance constraint 'U' : 'P'}}
29+ // expected-note@+1 {{conformance constraint 'U' : 'P' implied here}}
3030func oneProtocol4< T, U> ( _: T , _: U ) where U : P , T. X == U , T : P , U. X == T { }
3131// CHECK-LABEL: oneProtocol4
3232// CHECK: Generic signature: <T, U where T : P, T == U.X, U == T.X>
@@ -59,38 +59,38 @@ protocol P2 {
5959 associatedtype Y : P1
6060}
6161
62- // expected-warning@+2 {{redundant conformance constraint 'U': 'P2'}}
63- // expected-note@+1 {{conformance constraint 'U': 'P2' implied here}}
62+ // expected-warning@+2 {{redundant conformance constraint 'U' : 'P2'}}
63+ // expected-note@+1 {{conformance constraint 'U' : 'P2' implied here}}
6464func twoProtocols1< T, U> ( _: T , _: U ) where T : P1 , U : P2 , T. X == U , U. Y == T { }
6565// CHECK-LABEL: twoProtocols1
6666// CHECK: Generic signature: <T, U where T : P1, T == U.Y, U == T.X>
6767
68- // expected-warning@+2 {{redundant conformance constraint 'U': 'P2'}}
69- // expected-note@+1 {{conformance constraint 'U': 'P2' implied here}}
68+ // expected-warning@+2 {{redundant conformance constraint 'U' : 'P2'}}
69+ // expected-note@+1 {{conformance constraint 'U' : 'P2' implied here}}
7070func twoProtocols2< T, U> ( _: T , _: U ) where U : P2 , T : P1 , T. X == U , U. Y == T { }
7171// CHECK-LABEL: twoProtocols2
7272// CHECK: Generic signature: <T, U where T : P1, T == U.Y, U == T.X>
7373
74- // expected-warning@+2 {{redundant conformance constraint 'U': 'P2'}}
75- // expected-note@+1 {{conformance constraint 'U': 'P2' implied here}}
74+ // expected-warning@+2 {{redundant conformance constraint 'U' : 'P2'}}
75+ // expected-note@+1 {{conformance constraint 'U' : 'P2' implied here}}
7676func twoProtocols3< T, U> ( _: T , _: U ) where T : P1 , T. X == U , U : P2 , U. Y == T { }
7777// CHECK-LABEL: twoProtocols3
7878// CHECK: Generic signature: <T, U where T : P1, T == U.Y, U == T.X>
7979
80- // expected-warning@+2 {{redundant conformance constraint 'U': 'P2'}}
81- // expected-note@+1 {{conformance constraint 'U': 'P2' implied here}}
80+ // expected-warning@+2 {{redundant conformance constraint 'U' : 'P2'}}
81+ // expected-note@+1 {{conformance constraint 'U' : 'P2' implied here}}
8282func twoProtocols4< T, U> ( _: T , _: U ) where U : P2 , T. X == U , T : P1 , U. Y == T { }
8383// CHECK-LABEL: twoProtocols4
8484// CHECK: Generic signature: <T, U where T : P1, T == U.Y, U == T.X>
8585
86- // expected-warning@+2 {{redundant conformance constraint 'U': 'P2'}}
87- // expected-note@+1 {{conformance constraint 'U': 'P2' implied here}}
86+ // expected-warning@+2 {{redundant conformance constraint 'U' : 'P2'}}
87+ // expected-note@+1 {{conformance constraint 'U' : 'P2' implied here}}
8888func twoProtocols5< T, U> ( _: T , _: U ) where T : P1 , T. X == U , U. Y == T , U : P2 { }
8989// CHECK-LABEL: twoProtocols5
9090// CHECK: Generic signature: <T, U where T : P1, T == U.Y, U == T.X>
9191
92- // expected-warning@+2 {{redundant conformance constraint 'T': 'P1'}}
93- // expected-note@+1 {{conformance constraint 'T': 'P1' implied here}}
92+ // expected-warning@+2 {{redundant conformance constraint 'T' : 'P1'}}
93+ // expected-note@+1 {{conformance constraint 'T' : 'P1' implied here}}
9494func twoProtocols6< T, U> ( _: T , _: U ) where U : P2 , T. X == U , U. Y == T , T : P1 { }
9595// CHECK-LABEL: twoProtocols6
9696// CHECK: Generic signature: <T, U where T == U.Y, U : P2, U == T.X>
0 commit comments