shithub: mc

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