// RUN: %clang_cc1 -verify -Wno-objc-root-class %s
@interfaceXX- (void)addObserver:(XX*)o;// expected-note 2{{passing argument to parameter 'o' here}}
@end@interfaceYY+ (void)classMethod;@end@implementationYYstatic XX *obj;+ (void)classMethod{[objaddObserver:self];// expected-error {{cannot initialize a parameter of type 'XX *' with an lvalue of type 'Class'}}
Class whatever;[objaddObserver:whatever];// expected-error {{cannot initialize a parameter of type 'XX *' with an lvalue of type 'Class'}}
}@end