shithub: mc

ref: 4d4598925d9381a2e2fa8f618cb03265d26b5468
dir: /test/closure.myr/

View raw version
/* checks that functions with environment capture work. should exit with 42. */
const main = {
	var a = 42
	var f = {b
		-> a + b
	}
	-> f(13)
}