@@ -210,7 +210,7 @@ protocol ProtoAlias2 {
210210}
211211
212212func basicConflict< T: ProtoAlias1 & ProtoAlias2 > ( _: T ) where T. A1 == T . A2 { }
213- // expected-error@-1{{no type for 'T.A1' can satisfy both 'T.A1 == Int ' and 'T.A1 == String '}}
213+ // expected-error@-1{{no type for 'T.A1' can satisfy both 'T.A1 == String ' and 'T.A1 == Int '}}
214214
215215protocol RequiresAnyObject {
216216 associatedtype A : AnyObject
@@ -231,14 +231,14 @@ func testMissingRequirements() {
231231 // expected-error@-1{{no type for 'T.A' can satisfy both 'T.A == S' and 'T.A : AnyObject'}}
232232
233233 func conflict2< T: RequiresConformance > ( _: T ) where T. A == C { }
234- // expected-error@-1{{no type for 'T.A' can satisfy both 'T.A : P ' and 'T.A == C '}}
234+ // expected-error@-1{{no type for 'T.A' can satisfy both 'T.A == C ' and 'T.A : P '}}
235235
236236 class C { }
237237 func conflict3< T: RequiresSuperclass > ( _: T ) where T. A == C { }
238- // expected-error@-1{{no type for 'T.A' can satisfy both 'T.A : Super ' and 'T.A : C '}}
238+ // expected-error@-1{{no type for 'T.A' can satisfy both 'T.A : C ' and 'T.A : Super '}}
239239
240240 func conflict4< T: RequiresSuperclass > ( _: T ) where T. A: C { }
241- // expected-error@-1{{no type for 'T.A' can satisfy both 'T.A : Super ' and 'T.A : C '}}
241+ // expected-error@-1{{no type for 'T.A' can satisfy both 'T.A : C ' and 'T.A : Super '}}
242242}
243243
244244protocol Fooable {
@@ -265,51 +265,51 @@ func sameTypeConflicts() {
265265 var bar : Y { return Y ( ) }
266266 }
267267
268- // expected-error@+1{{no type for 'T.Foo' can satisfy both 'T.Foo == Y ' and 'T.Foo == X '}}
268+ // expected-error@+1{{no type for 'T.Foo' can satisfy both 'T.Foo == X ' and 'T.Foo == Y '}}
269269 func fail1<
270270 T: Fooable , U: Fooable
271271 > ( _ t: T , u: U ) -> ( X , Y )
272272 where T. Foo == X , U. Foo == Y , T. Foo == U . Foo {
273273 fatalError ( )
274274 }
275275
276- // expected-error@+1{{no type for 'T.Foo' can satisfy both 'T.Foo == X ' and 'T.Foo == Y '}}
276+ // expected-error@+1{{no type for 'T.Foo' can satisfy both 'T.Foo == Y ' and 'T.Foo == X '}}
277277 func fail2<
278278 T: Fooable , U: Fooable
279279 > ( _ t: T , u: U ) -> ( X , Y )
280280 where T. Foo == U . Foo , T. Foo == X , U. Foo == Y {
281281 fatalError ( )
282282 }
283283
284- // expected-error@+1{{no type for 'T.Bar' can satisfy both 'T.Bar : Fooable ' and 'T.Bar == X '}}
284+ // expected-error@+1{{no type for 'T.Bar' can satisfy both 'T.Bar == X ' and 'T.Bar : Fooable '}}
285285 func fail3< T: Barrable > ( _ t: T ) -> X
286286 where T. Bar == X {
287287 fatalError ( )
288288 }
289289
290- // expected-error@+1{{no type for 'T.Bar.Foo' can satisfy both 'T.Bar.Foo == Z ' and 'T.Bar.Foo == X '}}
290+ // expected-error@+1{{no type for 'T.Bar.Foo' can satisfy both 'T.Bar.Foo == X ' and 'T.Bar.Foo == Z '}}
291291 func fail4< T: Barrable > ( _ t: T ) -> ( Y , Z )
292292 where
293293 T. Bar == Y ,
294294 T. Bar. Foo == Z {
295295 fatalError ( )
296296 }
297297
298- // expected-error@+1{{no type for 'T.Bar.Foo' can satisfy both 'T.Bar.Foo == Z ' and 'T.Bar.Foo == X '}}
298+ // expected-error@+1{{no type for 'T.Bar.Foo' can satisfy both 'T.Bar.Foo == X ' and 'T.Bar.Foo == Z '}}
299299 func fail5< T: Barrable > ( _ t: T ) -> ( Y , Z )
300300 where
301301 T. Bar. Foo == Z ,
302302 T. Bar == Y {
303303 fatalError ( )
304304 }
305305
306- // expected-error@+1{{no type for 'T.X' can satisfy both 'T.X == Int ' and 'T.X == String '}}
306+ // expected-error@+1{{no type for 'T.X' can satisfy both 'T.X == String ' and 'T.X == Int '}}
307307 func fail6< U, T: Concrete > ( _: U , _: T ) where T. X == String { }
308308
309309 struct G < T> { }
310310
311311 // FIXME: conflict diagnosed twice
312- // expected-error@+1 2{{no type for 'T.X' can satisfy both 'T.X == Int ' and 'T.X == G<U.Foo> '}}
312+ // expected-error@+1 2{{no type for 'T.X' can satisfy both 'T.X == G<U.Foo> ' and 'T.X == Int '}}
313313 func fail7< U: Fooable , T: Concrete > ( _: U , _: T ) where T. X == G < U . Foo > { }
314314
315315 // FIXME: conflict diagnosed twice
@@ -318,6 +318,6 @@ func sameTypeConflicts() {
318318 func fail8< T, U: Fooable > ( _: U , _: T ) where T == G < U . Foo > , T == Int { }
319319
320320 // FIXME: conflict diagnosed twice
321- // expected-error@+1 2{{no type for 'T' can satisfy both 'T == Int ' and 'T == G<U.Foo> '}}
321+ // expected-error@+1 2{{no type for 'T' can satisfy both 'T == G<U.Foo> ' and 'T == Int '}}
322322 func fail9< T, U: Fooable > ( _: U , _: T ) where T == Int , T == G < U . Foo > { }
323323}
0 commit comments