shithub: mc

ref: ef03dd4e5de858a096e880e19eb7ed3acf857f5c
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.die("Impossible match failure\n");
	;;
	std.exit(0)
}