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
Copy file name to clipboardExpand all lines: test/Generics/inheritance.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ func testGenericInherit() {
55
55
}
56
56
57
57
58
-
structSS<T>:T{} // expected-error{{inheritance from non-protocol type 'T'}}
58
+
structSS<T>:T{} // expected-error{{generic struct type cannot inherit from non-protocol type 'T'giy }}
59
59
enumSE<T>:T{case X } // expected-error{{raw type 'T' is not expressible by a string, integer, or floating-point literal}} // expected-error {{SE<T>' declares raw type 'T', but does not conform to RawRepresentable and conformance could not be synthesized}} expected-error{{RawRepresentable conformance cannot be synthesized because raw type 'T' is not Equatable}}
@@ -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{{extension type cannot inherit from non-protocol type '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{{extension type cannot inherit from non-protocol type '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