shithub: mc

ref: f6fadc8f08a0732f22ec6df34822f45e0f3a7f60
dir: /test/outparam-sl.myr/

View raw version
/* should assign a slice through an out param, returning exiting with 2 */
const arr = [1,2,3,4]
const f = {out
	*out = arr[1:3]
}

const main = {
	var v

	f(&v)
	-> v[0]
}