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
fP(p) // expected-error{{type 'any P' cannot conform to 'P'}} expected-note {{only concrete types such as structs, enums and classes can conform to protocols}}
23
+
fP(p)
27
24
fAO(p) // expected-error{{global function 'fAO' requires that 'any P' be a class type}}
28
25
fAOE(p) // expected-error{{argument type 'any P' expected to be an instance of a class or class-constrained type}}
fP(opp) // expected-error{{type 'any OP & P' cannot conform to 'P'}} expected-note {{only concrete types such as structs, enums and classes can conform to protocols}}
41
-
fOP(opp) // expected-error{{type 'any OP & P' cannot conform to 'OP'}} expected-note {{only concrete types such as structs, enums and classes can conform to protocols}}
37
+
fP(opp)
38
+
fOP(opp)
42
39
fAO(opp) // expected-error{{global function 'fAO' requires that 'any OP & P' be a class type}}
43
40
fAOE(opp)
44
41
fT(opp)
45
42
46
43
fOP(sp)
47
-
fSP(sp) // expected-error{{'any SP' cannot be used as a type conforming to protocol 'SP' because 'SP' has static requirements}}
0 commit comments