shithub: mc

ref: f7074d00acc613446d00e89743bd1e62fa85598f
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
}