2011-03-25 14:19:20 -05:00
|
|
|
// xfail-stage0
|
2011-04-19 15:35:49 -05:00
|
|
|
fn start(chan[chan[str]] c) {
|
2010-08-11 17:05:33 -05:00
|
|
|
let port[str] p = port();
|
|
|
|
c <| chan(p);
|
|
|
|
}
|
|
|
|
|
2011-04-19 15:35:49 -05:00
|
|
|
fn main() {
|
2010-08-11 17:05:33 -05:00
|
|
|
let port[chan[str]] p = port();
|
|
|
|
auto child = spawn "child" start(chan(p));
|
|
|
|
auto c <- p;
|
|
|
|
}
|