reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
// RUN: %clang_cc1  -fsyntax-only -verify -Wno-objc-root-class %s
// rdar://34192541

@class NSString;

@protocol MyProtocol
@property (nonatomic, strong, readonly) NSString *myString;
@end

@interface MyClass <MyProtocol>
// Don't warn about this setter:
@property (nonatomic, strong, setter=setMYString:) NSString *myString;


@property (nonatomic, strong, readonly) NSString *overridenInClass; // expected-note {{property declared here}}
@end

@interface MySubClass: MyClass
@property (nonatomic, strong, setter=setMYOverride:) NSString *overridenInClass;
// expected-warning@-1 {{'setter' attribute on property 'overridenInClass' does not match the property inherited from 'MyClass'}}
@end