shithub: mc

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