shithub: mc

ref: cd811b587f42060b2a96557689a0ef8c71561e87
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)
}