summaryrefslogtreecommitdiff
path: root/test/stdopt-some.myr
blob: 714222efb02d503a1db086c0e71cce9882182c1e (plain)
1
2
3
4
5
6
7
8
9
use std

const main = {
	match `std.Some 42
	| `std.Some x:	std.exit(x)
	| `std.None:	std.exit(1)
	;;
}