Compiler Incorrectly Warns when declaring a delegate property that conforms to a protocol which inherits from a protocol

So, I have a subclass of NSTableView. I extend NSTableViewDelegate. My interface looks something like this:


@protocol MyTableViewDelegate;

@interface MyTableView : NSTableView

@property (nullable,weak) id <MyTableViewDelegate> delegate;

@end

@protocol MyTableViewDelegate <NSTableViewDelegate>

//Added methods here...

@end


Now this always would warn, but not if you used @dynamic to acknowledge intent:


@implementation MyTableView
@dynamic delegate;




@end


But now the warning is always present in Xcode 8

Here's the bug number:

28388172

Compiler Incorrectly Warns when declaring a delegate property that conforms to a protocol which inherits from a protocol
 
 
Q