summaryrefslogtreecommitdiff
path: root/test/matchnsconst.myr
blob: 8a61291bdc8cab42b32f7470356e0929a77e327e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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")
	;;
}