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
ClangImporter: Refactor loadObjCMethods() to not call CollectMultipleMethodsInGlobalPool()
Let's try calling ObjCInterface::lookupMethod() instead. This also
eliminates an order dependency between selector conflict checking
and protocol member mirroring, which fixes a diagnostics regression
once lazy loading is enabled for mirrored protocol members.
Copy file name to clipboardExpand all lines: test/ClangImporter/objc_init_redundant.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,12 @@ import Foundation
10
10
extensionNSObject{
11
11
@objcconvenienceinit(){self.init()} // expected-error{{initializer 'init()' with Objective-C selector 'init' conflicts with previous declaration with the same Objective-C selector}}
// CHECK: ObjectiveC.NSObject{{.*}}note: 'init' previously declared here
13
+
// CHECK: ObjectiveC.NSObject:{{.*}}note: 'init' previously declared here
14
14
}
15
15
16
16
extensionNSObject{
17
17
@objc(class)func foo(){} // expected-error{{method 'foo()' with Objective-C selector 'class' conflicts with method 'class()' with the same Objective-C selector}}
0 commit comments