Imagine I have two protocols:
@protocol A
@end
and
@protocol B <A> // Protocol B conforms to protocol A.
@end
And also two variables:
id<A> myVar = nil;
and
id<B> otherVar = //correctly initialized to some class that conforms to <B>;
Then, why can't I assign 'otherVar' to 'myVar'?
myVar = otherVar; //Warning, sending id<B> to parameter of incompatible type id<A>
Thanks!