shithub: mc

ref: 6586d3b6c2dad1ed0e1d3c798a42660f4c17d456
dir: /test/mkunion.myr/

View raw version
use std
/* checks that union creation works. exits with 0. */
type u = union
	`Some int
	`None
;;

const main = {
	var v

	v = `Some 123
	-> 0
}