Debian Codegraph @

src/test/01-Basic/100.ck

raw
1 // static function test: calling from class name (no instance)
2
3 public class Foo
4 {
5 fun static void foo( string s )
6 {
7 if( s == "bar" ) <<< "success">>>;
8 }
9 }
10
11 // call here
12 Foo.foo( "bar" );