shithub: mc

ref: 3d20a6d5e0c554e9f3d0d3f504f4dfb28901ebb7
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
}