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

type t(@a) = union
	`Foo @a
	`Bar
;;

const main = {
	match `Foo 123
	| `Foo a:	std.exit(0xf)
	| `Bar:		std.exit(0x0)
	;;
}