summaryrefslogtreecommitdiff
path: root/test/stdopt-none.myr
blob: 63f4d357f6697fff7d2083e7382f4004939d6390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use std

const f = {
	-> `std.None
}

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