summaryrefslogtreecommitdiff
path: root/tests/errors/bug778224.vala
blob: 3a61a029b6052ec00fddc667b3e4bc15311282b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
errordomain FooError {
	BAR;
}

[SimpleType]
struct Foo {
	int i;
}

bool @true = true;

Foo foo () throws FooError {
	if (@true) {
		throw new FooError.BAR ("");
	}

	return { 1 };
}

void main () {
	try {
		foo ();
	} catch {
	}
}