summaryrefslogtreecommitdiff
path: root/test/matchtup.myr
blob: 95f9a1f927b8f813cd9e640ae898c328c1caff56 (plain)
1
2
3
4
5
6
7
8
9
10
11
use std

const main = {
	var v = (1, 2)

	match v
	| (1, x):	std.exit(40 + x)
	| _:	std.die("Wat")
	;;
	std.exit(0)
}