shithub: mc

ref: 682c4ce6114cb44e2ad95a75269585f6e1da8150
dir: /test/genericret.myr/

View raw version
use std

type t(@a) = union
	`Val @a
	`None
;;

const f = {-> t(int)
	-> `None
}

const main = {
	match f()
	`None:	-> 42;;
	;;
	-> 0
}