shithub: mc

ref: da5f858f60c9a8d52add2f60845483be2f4b416e
dir: /test/genericmatch.myr/

View raw version
use std

type t(@a) = union
	`Foo @a
	`Bar
;;

const main = {
	match `Foo 123
	`Foo a:	-> 0xf;;
	`Bar:	-> 0x0;;
	;;
}