shithub: mc

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