Closed iccir closed 8 years ago
The follow produces a bogus type checker warning:
@implementation NotificationCenter … - (void) postNotificationName:(String)name object:(id)object { … } @end @implementation NotificationCenter + (void) aClassMethod { [[NotificationCenter defaultCenter] postNotificationName:"Foo" object:self]; // Error } @end
As in Objective-C, id should be able to take a Class
id
Class
The follow produces a bogus type checker warning:
As in Objective-C,
id
should be able to take aClass