Static keyword before @protocol

You can write your code like this:

static @protocol MyProtocol <NSObject>    
...    
@end

      

And it compiled successfully.
Why is there no mistake? How is static interpreted by the compiler?

+3


source to share


1 answer


Obviously this is silently ignored as you cannot specify a protocol storage class as it doesn't make sense.



+4


source







All Articles