shithub: mc

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