summaryrefslogtreecommitdiff
path: root/tests/delegates/incompatible-error-argument-2.test
blob: 50b422a52cc1bbb5fd5df78211dc276d50c08e9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Invalid Code

errordomain FooError {
	FAIL;
}

errordomain BarError {
	FAIL;
}

delegate void FooFunc () throws FooError;

void bar () throws BarError {
	throw new BarError.FAIL ("");
}

void foo (FooFunc f) {
}

void main () {
	foo (bar);
}