shithub: mc

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