You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fn start(chan[chan[str]] c) {
let port[str] p;
p = port();
c <| chan(p);
}
fn main() {
let port[chan[str]] p = port();
spawn start(chan(p));
p |> c;
auto c;
}
Interestingly, if you move the auto c; line above p |> c then the program works correctly.