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
extensionMySample6:SampleProtocol1{} // expected-warning {{extension declares a conformance of imported type 'Sample6' to imported protocol 'SampleProtocol1'}}
77
81
// expected-note @-1 {{add '@retroactive' to silence this warning}} {{22-37=@retroactive SampleProtocol1}}
78
82
79
-
// Ensure module-qualifying both types still silences the warning
83
+
// Ensure module-qualifying the protocol silences the warning
extensionLibrary.Sample6:Library.SampleProtocol2{} // ok, both types are module-qualified.
86
+
extensionSample6a:Library.SampleProtocol2{} // ok, protocol is module qualified.
87
+
extensionLibrary.Sample6b:SampleProtocol2{} // expected-warning {{extension declares a conformance of imported type 'Sample6b' to imported protocol 'SampleProtocol2'; this will not behave correctly if the owners of 'Library' introduce this conformance in the future}}
88
+
// expected-note @-1 {{add '@retroactive' to silence this warning}}
89
+
extensionSample6c:Library.SampleProtocol1a{} // ok, protocol is module qualified.
0 commit comments