summaryrefslogtreecommitdiff
path: root/tests/semantic/throw-unknown-error-type.test
blob: 40834e8c2f2a24b7c600646dfc73ca68e0202f07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Invalid Code

void foo () throws Error {
	int bar = 1;
	switch (bar) {
		case 0:
			break;
		default:
			throw new FooError.FAIL ("");
	}
}

void main () {
}