write static delegate instead of callback use static delegate instead of
[vala-lang.git] / tests / test-029.vala
blob62caf660a60793ab4fd4de49d235646aa88e19d8
1 using GLib;
3 class Maman.Foo {
4 public int p1 { get; set; }
5 public int p2 { get; set; }
7 public Foo (int i, construct int p2) {
8 p1 = 2 * i;
11 public static int main (string[] args) {
12 stdout.printf ("Construct Formal Parameter Test: 1");
14 var foo = new Foo (2, 3);
16 stdout.printf (" 2");
17 stdout.printf (" %d", foo.p2);
18 stdout.printf (" %d", foo.p1);
20 stdout.printf (" 5\n");
22 return 0;