1 /* Contributed by Nicola Pero - Fri Mar 9 21:35:47 CET 2001 */
3 #include <objc/Object.h>
5 /* Test defining two protocol, a class adopting both of them,
6 and using an object of type `id <Protocol1, Protocol2>' */
10 - (void) setEnabled: (BOOL)flag;
17 @interface Feature : Object <Enabling, Evaluating>
24 @implementation Feature
29 - (void) setEnabled: (BOOL)flag
41 id <Enabling, Evaluating> object;
43 object = [Feature new];
45 [object setEnabled: YES];
46 if (![object isEnabled])
51 if ([object importance] != 1000)