blob: 7698ee01aea8bc75acec528e0a4fd36d743f8cbb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// -*- rust -*-
impure fn main() {
let port[int] po = port();
let chan[int] ch = chan(po);
ch <| 10;
let int i <- po;
check (i == 10);
ch <| 11;
auto j <- po;
check (j == 11);
}
|