summaryrefslogtreecommitdiff
path: root/test/mkunion.myr
blob: bd268a88867fd70365575c4a65c2f3b961cecef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use std
/* checks that union creation works. exits with 0. */
type u = union
	`Some int
	`None
;;

const main = {
	var v

	v = `Some 123
	std.exit(0)
}