2011-04-07 15:49:27 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
obj foo() {
|
2011-12-22 16:42:52 -06:00
|
|
|
fn m1(i: int) { let i = i + 1; #debug("hi!"); }
|
2011-11-03 04:57:54 -05:00
|
|
|
fn m2(i: int) { let i = i + 1; self.m1(i); }
|
2011-06-15 13:19:50 -05:00
|
|
|
}
|
2011-07-27 07:19:39 -05:00
|
|
|
let a = foo();
|
|
|
|
let i: int = 0;
|
2011-06-15 13:19:50 -05:00
|
|
|
a.m1(i);
|
|
|
|
a.m2(i);
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|