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
@inlinablepublicfunc signatureOfInlinable(_:NormalProtoAssocHolder<NormalStruct>){} // expected-error{{cannot use conformance of 'NormalStruct' to 'NormalProto' here; 'BADLibrary' has been imported as '@_implementationOnly'}}
159
159
160
160
publicfunc testDefaultArgument(_:Int=NormalProtoAssoc<NormalStruct>()){} // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' here; 'BADLibrary' has been imported as '@_implementationOnly'}}
161
-
162
-
163
-
publicclassSubclassOfNormalClass:NormalClass{}
164
-
165
-
publicfunc testInheritedConformance(_:NormalProtoAssocHolder<SubclassOfNormalClass>){} // expected-error {{cannot use conformance of 'NormalClass' to 'NormalProto' here; 'BADLibrary' has been imported as '@_implementationOnly'}}
166
-
publicfunc testSpecializedConformance(_:NormalProtoAssocHolder<GenericStruct<Int>>){} // expected-error {{cannot use conformance of 'GenericStruct<T>' to 'NormalProto' here; 'BADLibrary' has been imported as '@_implementationOnly'}}
167
-
168
-
extensionArraywhere Element ==NormalProtoAssocHolder<NormalStruct>{ // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' here; 'BADLibrary' has been imported as '@_implementationOnly'}}
publicfunc testConditionalGeneric(_:NormalProtoAssocHolder<ConditionalGenericStruct<NormalStruct>>){} // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' here; 'BADLibrary' has been imported as '@_implementationOnly'}}
extensionPublicInferredAssociatedTypeImpl:PublicInferredAssociatedType{} // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' in associated type 'Self.Assoc' (inferred as 'NormalStruct'); 'BADLibrary' has been imported as '@_implementationOnly'}}
195
-
extensionPublicInferredAssociatedTypeImpl:UFIInferredAssociatedType{} // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' in associated type 'Self.Assoc' (inferred as 'NormalStruct'); 'BADLibrary' has been imported as '@_implementationOnly'}}
extensionUFIInferredAssociatedTypeImpl:PublicInferredAssociatedType{} // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' in associated type 'Self.Assoc' (inferred as 'NormalStruct'); 'BADLibrary' has been imported as '@_implementationOnly'}}
202
-
extensionUFIInferredAssociatedTypeImpl:UFIInferredAssociatedType{} // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' in associated type 'Self.Assoc' (inferred as 'NormalStruct'); 'BADLibrary' has been imported as '@_implementationOnly'}}
publicstructRefinedProtoImpl:RefinedProto{ // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' in associated type 'Self.Assoc' (inferred as 'NormalStruct'); 'BADLibrary' has been imported as '@_implementationOnly'}}
extensionNormalStruct:RefinedSelfProto{} // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' here; 'BADLibrary' has been imported as '@_implementationOnly'}}
extensionNormalStruct:RefinedSelfProtoInheritance{} // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' here; 'BADLibrary' has been imported as '@_implementationOnly'}}
publicstructSlightlyMoreComplicatedRequirementImpl:SlightlyMoreComplicatedRequirement{ // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' in associated type 'Self.Assoc.Element' (inferred as 'NormalStruct'); 'BADLibrary' has been imported as '@_implementationOnly'}}
236
-
publicfunc takesAssoc(_:[NormalStruct]){}
237
-
}
238
-
publicstructRequirementsHandleSubclassesToo:SlightlyMoreComplicatedRequirement{ // expected-error {{cannot use conformance of 'NormalClass' to 'NormalProto' in associated type 'Self.Assoc.Element' (inferred as 'SubclassOfNormalClass'); 'BADLibrary' has been imported as '@_implementationOnly'}}
publicstructRequirementsHandleSpecializationsToo:SlightlyMoreComplicatedRequirement{ // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' in associated type 'Self.Assoc.Element' (inferred as 'ConditionalGenericStruct<NormalStruct>'); 'BADLibrary' has been imported as '@_implementationOnly'}}
publicstructClassConstrainedGenericArg<T:NormalClass>:PublicInferredAssociatedType{ // expected-error {{cannot use conformance of 'NormalClass' to 'NormalProto' in associated type 'Self.Assoc' (inferred as 'T'); 'BADLibrary' has been imported as '@_implementationOnly'}}
0 commit comments