shithub: mc

ref: 74d91a0021de012908cfdb35fb61a1473a376130
dir: /test/tupleaccess.myr/

View raw version
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)
	;;
}