shithub: mc

ref: 30ae6dbd5eb7c7f8c9c76a32723dd33c5f90978b
dir: /test/matchint.myr/

View raw version
use std
/* 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
		;;
	;;
}