shithub: mc

ref: 852fa8ce58ef311f1faff678e89e20a45120e8e4
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
}