shithub: mc

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