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'}}
84
89
// expected-note @-1 {{add '@retroactive' to silence this warning}} {{22-37=@retroactive SampleProtocol1}}
85
90
86
-
// Ensure module-qualifying both types still silences the warning
91
+
// Ensure module-qualifying the protocol silences the warning
extensionLibrary.Sample6:Library.SampleProtocol2{} // ok, both types are module-qualified.
94
+
extensionSample6a:Library.SampleProtocol2{} // ok, protocol is module qualified.
95
+
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}}
96
+
// expected-note @-1 {{add '@retroactive' to silence this warning}}
97
+
extensionSample6c:Library.SampleProtocol1a{} // ok, protocol is module qualified.
extensionSample8:@retroactiveSampleProtocol1&SampleProtocol2{} // ok
127
136
137
+
// FIXME: Module qualification should suppress this warning
138
+
extensionSample8a:Library.SampleProtocol1&Library.SampleProtocol2{} // ok
139
+
// expected-warning@-1 {{extension declares a conformance of imported type 'Sample8a' to imported protocols 'SampleProtocol1', 'SampleProtocol2'; this will not behave correctly if the owners of 'Library' introduce this conformance in the future}}
140
+
// expected-note@-2 {{add '@retroactive' to silence this warning}}
141
+
128
142
extensionSample9:SampleProtocol3<Int>{}
129
143
// expected-warning@-1 {{extension declares a conformance of imported type 'Sample9' to imported protocol 'SampleProtocol3'; this will not behave correctly if the owners of 'Library' introduce this conformance in the future}}
130
144
// expected-note@-2 {{add '@retroactive' to silence this warning}}
// FIXME: Module qualification should suppress this warning
149
+
extensionSample9b:Library.SampleProtocol3<Int>{}
150
+
// expected-warning@-1 {{extension declares a conformance of imported type 'Sample9b' to imported protocol 'SampleProtocol3'; this will not behave correctly if the owners of 'Library' introduce this conformance in the future}}
151
+
// expected-note@-2 {{add '@retroactive' to silence this warning}}
0 commit comments