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
func useAsType(_ x:HasSelfRequirements){} // expected-error{{protocol 'HasSelfRequirements' can only be used as a generic constraint}}
38
40
func useCompoAsType(_ x:HasSelfRequirements&Bar){} // expected-error{{protocol 'HasSelfRequirements' can only be used as a generic constraint}}
39
41
func useCompoAliasAsType(_ x:Compo){} // expected-error{{protocol 'HasSelfRequirements' can only be used as a generic constraint}}
42
+
func useNestedCompoAliasAsType(_ x:CompoAssocType.Compo){} // expected-error{{protocol 'HasSelfRequirements' can only be used as a generic constraint}}
0 commit comments