We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae85119 commit 3b58707Copy full SHA for 3b58707
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 6e6bc5076c6824b690204ff3be12273976f2d3d3
+refs/heads/master: 71e1db596cebc35e2218ae011da2c76ee4ed5532
trunk/src/test/run-pass/issue-507.rs
@@ -0,0 +1,34 @@
+
+/*
3
+ This is a test case for Issue 507.
4
5
+ https://github.com/graydon/rust/issues/507
6
+*/
7
8
+use std;
9
10
+import std::task::join;
11
12
+fn grandchild(chan[int] c) {
13
+ c <| 42;
14
+}
15
16
+fn child(chan[int] c) {
17
+ auto _grandchild = spawn grandchild(c);
18
+ join(_grandchild);
19
20
21
+fn main() {
22
+ let port[int] p = port();
23
24
+ auto _child = spawn child(chan(p));
25
26
+ let int x;
27
+ p |> x;
28
29
+ log x;
30
31
+ assert(x == 42);
32
33
+ join(_child);
34
0 commit comments