mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +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.
11 lines
320 B
Objective-C
11 lines
320 B
Objective-C
@interface RootObject
|
|
- (instancetype)init;
|
|
- (void)overridden1 __attribute__((deprecated("Root.h")));
|
|
- (void)overridden2 __attribute__((deprecated("Root.h")));
|
|
@end
|
|
|
|
@interface RootObject (Root)
|
|
- (void)overridden3 __attribute__((deprecated("Root.h")));
|
|
- (void)overridden4 __attribute__((deprecated("Root.h")));
|
|
@end
|