summaryrefslogtreecommitdiff
path: root/tests/errors/bug627090.vala
blob: 19ddb3d183670af69679754ddabbe826bf3ea9a7 (plain)
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");
}