Skip to content

Commit e1aed3c

Browse files
committed
---
yaml --- r: 4559 b: refs/heads/master c: 29ceb41 h: refs/heads/master i: 4557: 0ca9a3e 4555: f6d3b02 4551: 29f8139 4543: 6f5865e v: v3
1 parent 992976b commit e1aed3c

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 4ff6763b60a83ce698940a30dd3a34eb22f6b099
2+
refs/heads/master: 29ceb41cc3939b44fa7fc7c2abe4d1bd88dac809

trunk/src/test/run-pass/many.rs

+8-11
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1-
// xfail-stage1
2-
// xfail-stage2
3-
// xfail-stage3
41
// -*- rust -*-
52

6-
fn sub(chan[int] parent, int id) {
3+
fn sub(parent: chan[int], id: int) {
74
if (id == 0) {
85
parent <| 0;
96
} else {
10-
let port[int] p = port();
11-
auto child = spawn sub(chan(p), id-1);
12-
let int y; p |> y;
7+
let p: port[int] = port();
8+
let child = spawn sub(chan(p), id-1);
9+
let y: int; p |> y;
1310
parent <| y + 1;
1411
}
1512
}
1613

1714
fn main() {
18-
let port[int] p = port();
19-
auto child = spawn sub(chan(p), 500);
20-
let int p |> y;
15+
let p: port[int] = port();
16+
let child = spawn sub(chan(p), 200);
17+
let y: int; p |> y;
2118
log "transmission complete";
2219
log y;
23-
assert (y == 500);
20+
assert (y == 200);
2421
}

0 commit comments

Comments
 (0)