1 #include "objc.h"
2
3 static void foo() {
4 Base *base;
5 int x = [base my_var];
6 [base my_method:x];
7 [Base my_method:x];
8 }
9
10 @implementation Base
11 -(int) my_var {
12 return my_var;
13 }
14
15 -(void) my_method: (int)param {
16 }
17
18 +(void) my_method: (int)param {
19 }
20 @end
21