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
exist.method1() // expected-error {{instance method 'method1()' requires that '(UnfulfillableGenericRequirements).A' inherit from 'C<UnfulfillableGenericRequirements>'}}
505
+
exist.method2()
506
+
// expected-error@-1 {{instance method 'method2()' requires the types 'UnfulfillableGenericRequirements' and '(UnfulfillableGenericRequirements).A.Element' be equivalent}}
507
+
// expected-error@-2 {{instance method 'method2()' requires that '(UnfulfillableGenericRequirements).A' conform to 'Sequence'}}
508
+
_ = exist.method3(false)
509
+
exist.method4(false)
510
+
// expected-error@-1 {{instance method 'method4' requires that 'Bool' inherit from 'C<UnfulfillableGenericRequirements>'}}
511
+
// expected-error@-2 {{member 'method4' cannot be used on value of protocol type 'UnfulfillableGenericRequirements'; use a generic constraint instead}}
512
+
exist.method5(false)
513
+
// expected-error@-1 {{instance method 'method5' requires that 'Bool' conform to 'Sequence'}}
514
+
// expected-error@-2 {{member 'method5' cannot be used on value of protocol type 'UnfulfillableGenericRequirements'; use a generic constraint instead}}
515
+
exist.method6(false)
516
+
// expected-error@-1 {{instance method 'method6' requires that '(UnfulfillableGenericRequirements).A.Element' conform to 'Sequence'}}
517
+
// expected-error@-2 {{instance method 'method6' requires that '(UnfulfillableGenericRequirements).A' conform to 'Sequence'}}
518
+
// expected-error@-3 {{instance method 'method6' requires that 'Bool' conform to 'UnfulfillableGenericRequirements'}}
519
+
// expected-error@-4 {{member 'method6' cannot be used on value of protocol type 'UnfulfillableGenericRequirements'; use a generic constraint instead}}
520
+
exist.method7(false)
521
+
// expected-error@-1 {{instance method 'method7' requires that 'C<UnfulfillableGenericRequirements>' conform to 'UnfulfillableGenericRequirements'}}
522
+
// expected-error@-2 {{member 'method7' cannot be used on value of protocol type 'UnfulfillableGenericRequirements'; use a generic constraint instead}}
523
+
// expected-error@-3 {{cannot convert value of type 'Bool' to expected argument type 'C<UnfulfillableGenericRequirements>'}}
524
+
}
525
+
477
526
// Settable storage members with a 'Self' result type may not be used with an
0 commit comments