shithub: mc

ref: 9a8ac636f97d0da01fe0d7283082bc7b9315e44e
dir: /test/outparam-sl.myr/

View raw version
use std
/* 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]
}