1 /* Contributed by Nicola Pero - Fri Oct 26 22:39:32 BST 2001 */
4 /* Test calling a class method on self where self has been redefined
5 to be another class - the call requires a cast */
22 @implementation ClassA
35 #ifdef __NEXT_RUNTIME__
36 + initialize { return self; }
40 /* The second class */
48 @implementation TestClass
51 self = [ClassA class];
54 if ([(Class)self method].a != 5)
60 #ifdef __NEXT_RUNTIME__
61 + initialize { return self; }