shithub: mc

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

View raw version
/* checks that parameterized types work. exits with 0. */
type option(@a) = union
	`Some @a
	`None
;;

const main = {
	var v

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