Skip to content

Commit 287b881

Browse files
committed
---
yaml --- r: 4077 b: refs/heads/master c: e71f261 h: refs/heads/master i: 4075: e2f9b6a v: v3
1 parent b873ae5 commit 287b881

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-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: fefeebce24eb429309d1aac8e61d97b6d814867d
2+
refs/heads/master: e71f261e3f9ca6921d166671f1e5b7a38e8e3a8b

trunk/src/test/run-pass/anon-obj-with-self-call.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,16 @@ fn main() {
2222

2323
assert (my_b.baz() == 2);
2424

25+
auto my_c = obj {
26+
fn foo() -> int {
27+
ret 3;
28+
}
29+
fn baz() -> int {
30+
ret self.foo();
31+
}
32+
with my_a
33+
};
34+
35+
assert (my_c.baz() == 3);
36+
assert (my_c.bar() == 3);
2537
}

0 commit comments

Comments
 (0)