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

const foo = {
	-> (1, 2, (3, 4))
}

const main = {
	match foo()
	| x:
		x.0 = 0
		(x.2).1 = 5
		std.put("a: {}, b: {}, c: {}\n", x.0, x.2.1, foo().1)
	;;
}