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
classA:NSObjectProtocol{} // expected-error{{cannot declare conformance to 'NSObjectProtocol' in Swift; 'A' should inherit 'NSObject' instead}}{{10-26=NSObject}}
8
+
9
+
@objcprotocolOther:NSObjectProtocol{}
10
+
11
+
classB:Other{} // expected-error{{cannot declare conformance to 'NSObjectProtocol' in Swift; 'B' should inherit 'NSObject' instead}}
12
+
13
+
classC{}
14
+
15
+
classD:C,NSObjectProtocol{} // expected-error{{cannot declare conformance to 'NSObjectProtocol' in Swift; 'D' should inherit 'NSObject' instead}}
16
+
17
+
classE{}
18
+
19
+
extensionE:NSObjectProtocol{} // expected-error{{cannot declare conformance to 'NSObjectProtocol' in Swift; 'E' should inherit 'NSObject' instead}}
0 commit comments