shithub: mc

ref: 6aab6b7b0d8fb0e37f7021f17714efbe02a227bb
dir: /test/matchnsconst.myr/

View raw version
use std

const main = {
	var v

	v = std.Badchar
	match v
	| std.Maxcharval:	std.put("matched maxcharval\n")
	| std.Badchar: 	std.put("matched badchar\n")
	| 'c':	std.put("matched 'c'\n")
	| _:	std.die("Impossible match failure in pattern\n")
	;;
}