shithub: mc

ref: 9673e11f4a1c9d3376a74d444e7c2e21ad65ebf2
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:	std.exit(42)
	;;
	std.exit(0)
}