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

const main = {
	var v = [2, 40, 10]

	match v
	| [x, y, 10]:	
		 std.exit(x + y)
	| _:	std.die("Wat")
	;;
	std.exit(0)
}