aboutsummaryrefslogtreecommitdiff
path: root/examples/err.fwd
blob: f2833e212e1a04389cf9455730980b657bd54c59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
do_something((auto, auto) ok);

/* consume can fail */
consume(auto a);

main()
{
	do_something() => auto a, auto b;
	consume(a);
	/* try commenting out error handler or consume(b); */
	!> e {
		consume(b);
		error "a failed"
	}

	consume(b);
}