Fariborz Jahanian | 25e077d | 2007-09-17 21:07:36 +0000 | [diff] [blame] | 1 | @protocol PROTO1 |
2 | @required | ||||
3 | - (int) FooBar; | ||||
4 | @optional | ||||
5 | - (void) MyMethod1; | ||||
6 | + (int) S; | ||||
7 | @end | ||||
8 | |||||
9 | @interface INTF1 | ||||
10 | @required // expected-error {{@required may be specified in protocols only}} | ||||
11 | - (int) FooBar; | ||||
12 | - (int) FooBar1; | ||||
13 | - (int) FooBar2; | ||||
14 | @optional // expected-error {{@optional may be specified in protocols only}} | ||||
15 | + (int) C; | ||||
16 | |||||
17 | - (int)I; | ||||
18 | @end |