Test case for issue #718.
This commit is contained in:
parent
5691d15703
commit
336949a590
27
src/test/run-pass/issue-718.rs
Normal file
27
src/test/run-pass/issue-718.rs
Normal 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user