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