shithub: mc

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