shithub: mc

ref: b8b1b240c2300954903272a543d9146b59d4f997
dir: /test/matchint.myr/

View raw version
/* checks that matching integers works. exits with 84. */
const main = {
	var v

	v = 12
	match 12
	1:
		-> 42
		;;
	2:	
		-> 81
		;;
	3:
		-> 123
		;;
	4:
		-> 99
		;;
	12:
		-> 84
		;;
	6:
		->  18
		;;
	;;
}