D-Bus: Remove extra semicolon to avoid C warning
[vala-lang.git] / tests / methods / lambda.vala
blobd533f688bf5715bea4a83ee5810a8cd11bea2cc9
1 using GLib;
3 static delegate int Maman.ActionCallback (int i);
5 class Maman.Bar : Object {
6 static int do_action (ActionCallback cb) {
7 return cb (1);
10 public static int main () {
11 stdout.printf ("Lambda Test: 1");
13 stdout.printf (" %d", do_action (i => i * 2));
15 stdout.printf (" %d", do_action (i => { return i * 3; }));
17 stdout.printf (" 4\n");
19 return 0;
23 void main () {
24 Maman.Bar.main ();