Debian Codegraph @

src/test/01-Basic/102.ck

raw
1 // static function test: sporking from class
2
3 public class Foo
4 {
5 fun static void foo( string s )
6 { if( s == "bar") <<< "success" >>>; }
7 }
8
9 // spork it
10 spork ~ Foo.foo( "bar" );
11
12 // give it a chance to run
13 me.yield();