shithub: mc

ref: 4e4f36fcf5177b0c51c4bcb5a203c5f86edf6e00
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)
	;;
}