gtk+-4.0: Change type of Gdk.Key.* constants to uint
[vala-gnome.git] / tests / objects / bug631267.vala
blob296fca86c9d6493cc93a91dbdc34c5b20ea13b3c
1 class FObject : Object {
4 struct FStruct {
5 public int i;
8 class Foo : Object {
9 public string s { get; set; }
10 public unowned string[] a { get; set; }
11 public int i { get; set; }
12 public FObject o { get; set; }
13 public FStruct t { get; set; }
14 public void* p { get; set; }
16 public int foo { get { return i; } }
17 public int bar { set { i = value; } }
19 public Foo () {
23 void main () {
24 var s = "bar";
25 string[] a = { "foo", "baz" };
26 var i = 42;
27 var o = new FObject ();
28 FStruct t = {};
29 void* p = &o;
31 var foo = new Foo ();
32 foo.s = s;
33 foo.a = a;
34 foo.i = i;
35 foo.o = o;
36 foo.t = t;
37 foo.p = p;
39 foo.notify["s"].connect (() => error ("string-type equality failed"));
40 foo.notify["a"].connect (() => error ("array-type equality failed"));
41 foo.notify["i"].connect (() => error ("simple-type equality failed"));
42 foo.notify["o"].connect (() => error ("object-type equality failed"));
43 foo.notify["t"].connect (() => error ("struct-type equality failed"));
44 foo.notify["p"].connect (() => error ("pointer-type equality failed"));
46 foo.s = s;
47 foo.a = a;
48 foo.i = i;
49 foo.o = o;
50 foo.t = t;
51 foo.p = p;