Files
swift-mirror/test/NameLookup/Inputs/MemberImportVisibility/ObjCOverloads/Branch.h
Allan Shortlidge b4376a9bd3 AST: Filter out some Obj-C overrides when MemberImportVisibility is enabled.
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.
2025-04-24 21:26:34 -07:00

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