shithub: mc

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