Skip to content

Commit 1cd95d2

Browse files
committed
---
yaml --- r: 4026 b: refs/heads/master c: 336949a h: refs/heads/master v: v3
1 parent 8dc70f1 commit 1cd95d2

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 5691d15703d9e013e83bddcfb63958f84b27095e
2+
refs/heads/master: 336949a5908c27759b3bce0bb6678860d63eb047

trunk/src/test/run-pass/issue-718.rs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//xfail-stage0
2+
//xfail-stage1
3+
//xfail-stage2
4+
5+
fn main() {
6+
7+
obj a() {
8+
fn foo() -> int {
9+
ret 2;
10+
}
11+
}
12+
13+
auto my_a = a();
14+
15+
auto my_b = obj() {
16+
with my_a
17+
};
18+
19+
assert (my_b.foo() == 2);
20+
21+
auto my_c = obj() {
22+
with my_b
23+
};
24+
25+
assert (my_c.foo() == 2);
26+
}
27+

0 commit comments

Comments
 (0)