1 class FObject
: 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
; } }
25 string[] a
= { "foo", "baz" };
27 var o
= new
FObject ();
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"));