shithub: mc

ref: 1ad08d5fdee3b975722f692e9222da1a0126d632
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
}