shithub: mc

ref: 81bef8daa90ad1c1589f3ebee10b030ad248b4c7
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
}