shithub: mc

ref: 3cbdb83dbbc80b2c8a3458e5b1a1ae5d3080fb3b
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
}