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
@@ -198,7 +198,7 @@ extension MMSuper1 : MMP1 { } // expected-warning{{conformance of 'MMSuper1' to
198
198
extensionMMSuper1:MMP2a{} // expected-warning{{conformance of 'MMSuper1' to protocol 'MMP2a' was already stated in the type's module 'placement_module_A'}}
199
199
extensionMMSuper1:MMP3b{} // okay
200
200
201
-
extensionMMSub1:AnyObject{} // expected-error{{inheritance from non-protocol type 'AnyObject'}}
201
+
extensionMMSub1:AnyObject{} // expected-error{{only protocols can inherit from 'AnyObject'}}
202
202
203
203
extensionMMSub2:MMP1{} // expected-warning{{conformance of 'MMSub2' to protocol 'MMP1' was already stated in the type's module 'placement_module_A'}}
204
204
extensionMMSub2:MMP2a{} // expected-warning{{conformance of 'MMSub2' to protocol 'MMP2a' was already stated in the type's module 'placement_module_A'}}
extensionMMSub3:MMP1{} // expected-warning{{conformance of 'MMSub3' to protocol 'MMP1' was already stated in the type's module 'placement_module_A'}}
210
210
extensionMMSub3:MMP2a{} // expected-warning{{conformance of 'MMSub3' to protocol 'MMP2a' was already stated in the type's module 'placement_module_A'}}
211
211
extensionMMSub3:MMP3b{} // okay
212
-
extensionMMSub3:AnyObject{} // expected-error{{inheritance from non-protocol type 'AnyObject'}}
212
+
extensionMMSub3:AnyObject{} // expected-error{{only protocols can inherit from 'AnyObject'}}
213
213
214
214
extensionMMSub4:MMP1{} // expected-warning{{conformance of 'MMSub4' to protocol 'MMP1' was already stated in the type's module 'placement_module_B'}}
215
215
extensionMMSub4:MMP2a{} // expected-warning{{conformance of 'MMSub4' to protocol 'MMP2a' was already stated in the type's module 'placement_module_B'}}
0 commit comments