mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Unlike in Swift, Obj-C allows method overrides to be declared in extensions (categories), even outside of the module that defines the type that is being extended. When MemberImportVisibility is enabled, these overrides must be filtered out to prevent them from hijacking name lookup and causing the compiler to insist that the module that defines the extension be imported. Resolves rdar://145329988.
10 lines
218 B
Objective-C
10 lines
218 B
Objective-C
@import Root;
|
|
|
|
@interface BranchObject : RootObject
|
|
- (void)overridden1 __attribute__((deprecated("Branch.h")));
|
|
@end
|
|
|
|
@interface BranchObject (Branch)
|
|
- (void)overridden3 __attribute__((deprecated("Branch.h")));
|
|
@end
|