shithub: mc

ref: b7b99ac74c22eaf17e89c79327c0c32f991ce089
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
}