summaryrefslogtreecommitdiff
path: root/test/tuple.myr
blob: 6ca240115bd4e67d13e7dbe075cfe316cdfe1247 (plain)
1
2
3
4
5
6
7
8
9
10
11
use std
/* checks that we can create tuples and destructure them. exits with 42. */
const main = {
	var a, b, c
	var v, x

	x = 10
	v = ((x, x + 12), x)
	((a, b), c) = v
	std.exit(a + b + c)
}