shithub: mc

ref: 2b71471ceacf88b94a3a82f4f7aa7eb2d4b677e6
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
}