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
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'}}
extensionPublicInferredAssociatedTypeImpl:PublicAssociatedTypeProto{} // 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:UFIAssociatedTypeProto{} // 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'}}
extensionUFIInferredAssociatedTypeImpl:PublicAssociatedTypeProto{} // 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:UFIAssociatedTypeProto{} // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' in associated type 'Self.Assoc' (inferred as 'NormalStruct'); 'BADLibrary' has been imported as '@_implementationOnly'}}
extensionPublicExplicitAssociatedTypeImpl:PublicAssociatedTypeProto{} // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' in associated type 'Self.Assoc' (inferred as 'NormalStruct'); 'BADLibrary' has been imported as '@_implementationOnly'}}
217
+
extensionPublicExplicitAssociatedTypeImpl:UFIAssociatedTypeProto{} // expected-error {{cannot use conformance of 'NormalStruct' to 'NormalProto' in associated type 'Self.Assoc' (inferred as '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'}}
254
+
publicstructClassConstrainedGenericArg<T:NormalClass>:PublicAssociatedTypeProto{ // expected-error {{cannot use conformance of 'NormalClass' to 'NormalProto' in associated type 'Self.Assoc' (inferred as 'T'); 'BADLibrary' has been imported as '@_implementationOnly'}}
@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
+
@inlinablepublicfunc testInheritedConformance(){
166
+
_ = NormalProtoAssocHolder<SubclassOfNormalClass>.self // expected-error {{cannot use conformance of 'NormalClass' to 'NormalProto' here; 'BADLibrary' has been imported as '@_implementationOnly'}}
_ = NormalProtoAssocHolder<GenericStruct<Int>>.self // expected-error {{cannot use conformance of 'GenericStruct<T>' to 'NormalProto' here; 'BADLibrary' has been imported as '@_implementationOnly'}}
0 commit comments