mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Objective-C protocols unlike their Swift counterparts could be nested in other types, so `computeNominalType` has to fetch a parent for such protocols (if any) just like importer does. Resolves: rdar://95084142
18 lines
366 B
Objective-C
18 lines
366 B
Objective-C
@import Foundation;
|
|
|
|
@protocol TrunkBranchProtocol;
|
|
|
|
__attribute__((objc_root_class))
|
|
@interface Trunk
|
|
- (instancetype)init;
|
|
- (void)addLimb:(id<TrunkBranchProtocol>)limb;
|
|
- (void)addLimbs:(NSArray<id<TrunkBranchProtocol>> *)limbs;
|
|
@end
|
|
|
|
// NS_SWIFT_NAME(Trunk.Branch)
|
|
__attribute__((swift_name("Trunk.Branch")))
|
|
@protocol TrunkBranchProtocol
|
|
- (void) flower;
|
|
@end
|
|
|