shithub: mc

ref: 0b419bf55a006dcee16bd9f50a4f8ec807437ce4
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
		;;
	;;
}