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

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