Debian Codegraph @

src/test/01-Basic/65.ck.disabled

raw
1 // sporking
2
3 public class X
4 {
5 int i;
6
7 fun void foo() { <<< "foo:", i >>>; }
8 fun void bar( float a ) { <<< "bar:", a >>>; }
9 fun void go() { spork ~ bar( 1 ); }
10 fun static void y() { <<< "success" >>>; }
11 }
12
13 // make x
14 X x;
15 2 => x.i;
16
17 spork ~ x.foo();
18 spork ~ x.bar( 3 );
19 x.go();
20 spork ~ X.y();
21
22 // wait
23 me.yield();