rust/src/test/run-pass/anon-obj-refer-to-parallel-method.rs

23 lines
321 B
Rust
Raw Normal View History

//xfail-test
2011-08-15 18:29:18 -05:00
// Test case for issue #822.
fn main() {
obj a() {
fn foo() -> int {
ret 2;
}
}
let my_a = a();
let my_b = obj() {
fn bar() -> int {
ret self.baz();
}
fn baz() -> int {
ret 3;
}
with my_a
};
}