summaryrefslogtreecommitdiff
path: root/test/matchmixed.myr
blob: e69cb1f9b92d7567b32f0bf75985c612ca1c4c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std

type u = union
	`A
	`B
;;

const main = {
	match "asdf"
	| `A:	std.put("Got a\n")
	| `B:	std.put("Got b\n")
	;;
	std.exit(42)
}