shithub: mc

ref: 8bd18e2d1caef67781ae69d761bdfca8d2bcf41d
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
}