shithub: mc

ref: 0500ef75d99bab9efd7932a9361ad3bebcb524b2
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
		;;
	;;
}