File tree 2 files changed +9
-12
lines changed
2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 4ff6763b60a83ce698940a30dd3a34eb22f6b099
2
+ refs/heads/master: 29ceb41cc3939b44fa7fc7c2abe4d1bd88dac809
Original file line number Diff line number Diff line change 1
- // xfail-stage1
2
- // xfail-stage2
3
- // xfail-stage3
4
1
// -*- rust -*-
5
2
6
- fn sub ( chan[ int] parent , int id ) {
3
+ fn sub ( parent : chan[ int ] , id : int ) {
7
4
if ( id == 0 ) {
8
5
parent <| 0 ;
9
6
} 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;
13
10
parent <| y + 1 ;
14
11
}
15
12
}
16
13
17
14
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;
21
18
log "transmission complete" ;
22
19
log y;
23
- assert ( y == 500 ) ;
20
+ assert ( y == 200 ) ;
24
21
}
You can’t perform that action at this time.
0 commit comments