13 lines
212 B
Rust
13 lines
212 B
Rust
|
|
|
|
fn main() {
|
|
obj foo() {
|
|
fn m1(i: int) { let i = i + 1; #debug("hi!"); }
|
|
fn m2(i: int) { let i = i + 1; self.m1(i); }
|
|
}
|
|
let a = foo();
|
|
let i: int = 0;
|
|
a.m1(i);
|
|
a.m2(i);
|
|
}
|