Files
swift-mirror/test/ClangImporter/Inputs/nested_protocol_name.h
Pavel Yaskevich add41afc47 [AST] Teach computeNominalType about nested ObjC protocols
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
2022-06-28 12:06:26 -07:00

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