shithub: mc

ref: 6586d3b6c2dad1ed0e1d3c798a42660f4c17d456
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
}