1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
class Foo : Object { public string bar { owned get { try { return manam (); } catch (Error e) { assert_not_reached (); } } } } string manam () throws Error { return "manam"; } void main () { var foo = new Foo (); assert (foo.bar == "manam"); }