shithub: mc

ref: badfd2569a0a0e823f8ad8a7be041dd52a1e2903
dir: /test/matchbind.myr/

View raw version
type u = union
	`Int int
	`Chr char
	`Nil
;;

const main = {
	var v

	v = `Int 11
	match v
	`Int 127:
		-> 42
		;;
	`Int x:
		-> x
		;;
	`Chr 'a':
		-> 4
		;;
	`Nil:
		-> 6
		;;
	;;
}