shithub: mc

ref: 0a249c24c7dd73fbc47ea3eeb097da814f54bfe0
dir: /test/matchunion.myr/

View raw version
type u = union
	`Foo
	`Bar
	`Baz
	`Quux
;;

const main = {
	var v

	v = `Foo
	match v
	`Bar:
		-> 42
		;;
	`Baz:
		-> 81
		;;
	`Foo:
		-> 84
		;;
	`Quux:
		-> 123
		;;
	;;
}