shithub: mc

ref: d4f8f2a57a2d1b7adf6d9f45a1d3661cfd3d3d48
dir: /test/generictype.myr/

View raw version
type option(@a) = union
	`Some @a
	`None
;;

const main = {
	var v

	v = `Some 123
	match v
	`None:		-> 1;;
	`Some 123:	-> 0;;
	;;
	-> 60
}