shithub: mc

ref: ea7fb6cca6d0fbe0f4f3f3ef269d97e76c488c27
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:	-> 42
	;;
	-> 0
}