Test case for issue #718.

This commit is contained in:
Lindsey Kuper 2011-07-20 15:19:22 -07:00
parent 5691d15703
commit 336949a590

View File

@ -0,0 +1,27 @@
//xfail-stage0
//xfail-stage1
//xfail-stage2
fn main() {
obj a() {
fn foo() -> int {
ret 2;
}
}
auto my_a = a();
auto my_b = obj() {
with my_a
};
assert (my_b.foo() == 2);
auto my_c = obj() {
with my_b
};
assert (my_c.foo() == 2);
}