You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
arg.invariantSelf4(0) // expected-error {{member 'invariantSelf4' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
274
281
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'G<P1>'}}
275
282
arg.invariantSelf5() // expected-error {{member 'invariantSelf5' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
276
-
// FIXME: Should be diagnosed.
277
-
// arg.invariantSelf6()
283
+
arg.invariantSelf6() // expected-error {{member 'invariantSelf6' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
278
284
arg.invariantSelf7(0) // expected-error {{member 'invariantSelf7' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
279
285
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type '(G<P1>) -> Void'}}
280
286
arg.invariantSelf8(0) // expected-error {{member 'invariantSelf8' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
281
287
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'G<(P1) -> Void>'}}
282
288
arg.invariantSelf9(0) // expected-error {{member 'invariantSelf9' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
283
289
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'G<() -> P1>'}}
284
-
// FIXME: Should be diagnosed.
285
-
// arg.invariantSelf10(0)
290
+
arg.invariantSelf10(0) // expected-error {{member 'invariantSelf10' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
291
+
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'C<P1>'}}
292
+
arg.invariantSelf11() // expected-error {{member 'invariantSelf11' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
286
293
arg.invariantAssoc1(0) // expected-error {{member 'invariantAssoc1' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
287
294
// FIXME: Silence these since we cannot make use of the member anyway.
288
295
// expected-error@-2 {{cannot convert value of type 'Int' to expected argument type 'P1.Q'}}
@@ -293,16 +300,16 @@ do {
293
300
arg.invariantAssoc4(0) // expected-error {{member 'invariantAssoc4' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
294
301
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'G<P1.Q>'}}
295
302
arg.invariantAssoc5() // expected-error {{member 'invariantAssoc5' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
296
-
// FIXME: Should be diagnosed.
297
-
// arg.invariantAssoc6()
303
+
arg.invariantAssoc6() // expected-error {{member 'invariantAssoc6' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
298
304
arg.invariantAssoc7(0) // expected-error {{member 'invariantAssoc7' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
299
305
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type '(G<P1.Q>) -> Void'}}
300
306
arg.invariantAssoc8(0) // expected-error {{member 'invariantAssoc8' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
301
307
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'G<(P1.Q) -> Void>'}}
302
308
arg.invariantAssoc9(0) // expected-error {{member 'invariantAssoc9' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
303
309
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'G<() -> P1.Q>'}}
304
-
// FIXME: Should be diagnosed.
305
-
// arg.invariantAssoc10(0)
310
+
arg.invariantAssoc10(0) // expected-error {{member 'invariantAssoc10' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
311
+
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'C<P1.Q>'}}
312
+
arg.invariantAssoc11() // expected-error {{member 'invariantAssoc11' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
306
313
307
314
arg.contravariantSelfProp1 // expected-error {{member 'contravariantSelfProp1' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
308
315
arg.contravariantSelfProp2 // expected-error {{member 'contravariantSelfProp2' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
@@ -333,25 +340,23 @@ do {
333
340
arg.invariantSelfProp3 // expected-error {{member 'invariantSelfProp3' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
334
341
arg.invariantSelfProp4 // expected-error {{member 'invariantSelfProp4' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
335
342
arg.invariantSelfProp5 // expected-error {{member 'invariantSelfProp5' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
336
-
// FIXME: Should be diagnosed.
337
-
// arg.invariantSelfProp6
343
+
arg.invariantSelfProp6 // expected-error {{member 'invariantSelfProp6' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
338
344
arg.invariantSelfProp7 // expected-error {{member 'invariantSelfProp7' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
339
345
arg.invariantSelfProp8 // expected-error {{member 'invariantSelfProp8' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
340
346
arg.invariantSelfProp9 // expected-error {{member 'invariantSelfProp9' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
341
-
// FIXME: Should be diagnosed.
342
-
// arg.invariantSelfProp10
347
+
arg.invariantSelfProp10 // expected-error {{member 'invariantSelfProp10' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
348
+
arg.invariantSelfProp11 // expected-error {{member 'invariantSelfProp11' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
343
349
arg.invariantAssocProp1 // expected-error {{member 'invariantAssocProp1' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
344
350
arg.invariantAssocProp2 // expected-error {{member 'invariantAssocProp2' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
345
351
arg.invariantAssocProp3 // expected-error {{member 'invariantAssocProp3' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
346
352
arg.invariantAssocProp4 // expected-error {{member 'invariantAssocProp4' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
347
353
arg.invariantAssocProp5 // expected-error {{member 'invariantAssocProp5' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
348
-
// FIXME: Should be diagnosed.
349
-
// arg.invariantAssocProp6
354
+
arg.invariantAssocProp6 // expected-error {{member 'invariantAssocProp6' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
350
355
arg.invariantAssocProp7 // expected-error {{member 'invariantAssocProp7' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
351
356
arg.invariantAssocProp8 // expected-error {{member 'invariantAssocProp8' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
352
357
arg.invariantAssocProp9 // expected-error {{member 'invariantAssocProp9' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
353
-
// FIXME: Should be diagnosed.
354
-
// arg.invariantAssocProp10
358
+
arg.invariantAssocProp10 // expected-error {{member 'invariantAssocProp10' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
359
+
arg.invariantAssocProp11 // expected-error {{member 'invariantAssocProp11' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
355
360
356
361
arg[contravariantSelfSubscript1:0] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
357
362
// FIXME: Silence these since we cannot make use of the member anyway.
@@ -394,30 +399,30 @@ do {
394
399
// FIXME: Silence these since we cannot make use of the member anyway.
395
400
// expected-error@-2 {{cannot convert value of type 'Int' to expected argument type 'G<P1>'}}
396
401
arg[invariantSelfSubscript2:()] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
397
-
// FIXME: Should be diagnosed.
398
-
// arg[invariantSelfSubscript3: ()]
402
+
arg[invariantSelfSubscript3:()] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
399
403
arg[invariantSelfSubscript4:0] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
400
404
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type '(G<P1>) -> Void'}}
401
405
arg[invariantSelfSubscript5:0] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
402
406
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'G<(P1) -> Void>'}}
403
407
arg[invariantSelfSubscript6:0] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
404
408
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'G<() -> P1>'}}
405
-
// FIXME: Should be diagnosed.
406
-
// arg[invariantSelfSubscript7: 0]
409
+
arg[invariantSelfSubscript7:0] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
410
+
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'C<P1>'}}
411
+
arg[invariantSelfSubscript8:()] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
407
412
arg[invariantAssocSubscript1:0] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
408
413
// FIXME: Silence these since we cannot make use of the member anyway.
409
414
// expected-error@-2 {{cannot convert value of type 'Int' to expected argument type 'G<P1.Q>'}}
410
415
arg[invariantAssocSubscript2:()] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
411
-
// FIXME: Should be diagnosed.
412
-
// arg[invariantAssocSubscript3: ()]
416
+
arg[invariantAssocSubscript3:()] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
413
417
arg[invariantAssocSubscript4:0] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
414
418
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type '(G<P1.Q>) -> Void'}}
415
419
arg[invariantAssocSubscript5:0] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
416
420
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'G<(P1.Q) -> Void>'}}
417
421
arg[invariantAssocSubscript6:0] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
418
422
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'G<() -> P1.Q>'}}
419
-
// FIXME: Should be diagnosed.
420
-
// arg[invariantAssocSubscript7: 0]
423
+
arg[invariantAssocSubscript7:0] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
424
+
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type 'C<P1.Q>'}}
425
+
arg[invariantAssocSubscript8:()] // expected-error {{member 'subscript' cannot be used on value of protocol type 'P1'; use a generic constraint instead}}
0 commit comments