shithub: mc

ref: 2d9fe7100209acb431e392d58e4cf4eccfde00b7
dir: /test/genericmatch.myr/

View raw version
use std

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

const main = {
	match `Foo 123
	| `Foo a:	std.exit(0xf)
	| `Bar:		std.exit(0x0)
	;;
}