shithub: mc

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

View raw version
type option(@a) = union
	`Some @a
	`None
;;

const main = {
	var v

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