summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/writable-property-in-superclass.m
blob: 99be5413d7ae4bb43c72ff58266ea3157f4ab6f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %clang_cc1  -fsyntax-only -verify %s
// expected-no-diagnostics

@interface MessageStore
@property (assign, readonly) int P;
@end

@interface MessageStore (CAT)
@property (assign) int P;
@end

@interface  NeXTMbox : MessageStore
@end

@implementation NeXTMbox
- (void) Meth { self.P = 1; }
@end