write static delegate instead of callback use static delegate instead of
[vala-lang.git] / tests / test-014.vala
blob30b727b6b4cbca856f6d8a043ed6aa92646147fe
1 using GLib;
3 static delegate int Maman.ActionCallback ();
5 class Maman.Bar {
6 static int do_action () {
7 return 2;
10 static int main (string[] args) {
11 stdout.printf ("Callback Test: 1");
13 ActionCallback cb = do_action;
15 stdout.printf (" %d", cb ());
17 stdout.printf (" 3\n");
19 return 0;