| 1 |
// static test: calling a static function with dot notation |
| 2 |
|
| 3 |
class Foo |
| 4 |
{ |
| 5 |
static Foo @ ours; |
| 6 |
|
| 7 |
fun static void start() |
| 8 |
{ |
| 9 |
Foo f; |
| 10 |
f @=> Foo.ours; |
| 11 |
ours.foo( "bar" ); |
| 12 |
} |
| 13 |
|
| 14 |
fun static void foo( string s ) |
| 15 |
{ |
| 16 |
if( s == "bar" ) <<< "success" >>>; |
| 17 |
} |
| 18 |
} |
| 19 |
|
| 20 |
Foo.start(); |