2 * Contributed by Nicola Pero <nicola@brainstorm.co.uk>
3 * Fri Feb 2 11:48:01 GMT 2001
6 #include "../../objc-obj-c++-shared/Protocol1.h"
9 + (bycopy id<MyProtocol>) bycopyMethod;
12 @interface MyObject : Object <MyProtocol>
15 @implementation MyObject
16 + (bycopy id<MyProtocol>) bycopyMethod
18 return [MyObject alloc];
26 object = [MyObject bycopyMethod];