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
Update Two Tests Relying on Explicit NSObjectProtocol Conformances
These conformances are banned when using NSObjectProtocl in the real
SDK. Adding the `self` member has exposed these few places and started
diagnosing them as invalid again.
Copy file name to clipboardExpand all lines: test/ClangImporter/objc_parse.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -315,7 +315,7 @@ func ivars(_ hive: Hive) {
315
315
hive.queen.description() // expected-error{{value of type 'Hive' has no member 'queen'}}
316
316
}
317
317
318
-
classNSObjectable:NSObjectProtocol{
318
+
classNSObjectable:NSObjectProtocol{ // expected-error {{cannot declare conformance to 'NSObjectProtocol' in Swift; 'NSObjectable' should inherit 'NSObject' instead}}
0 commit comments