mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
20 lines
247 B
Objective-C
20 lines
247 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
|
|
// NB: No NS_ASSUME_NONNULL
|
|
|
|
@protocol FooProtocol <NSObject>
|
|
|
|
@property (nonatomic,readonly) NSString *name;
|
|
|
|
@end
|
|
|
|
|
|
@interface ParentClass : NSObject
|
|
|
|
- (instancetype)initWithFoo:(id<FooProtocol>)foo;
|
|
|
|
@end
|
|
|
|
|