shithub: mc

ref: 545ee279bf3bee642c0cc97c2fef4a699f96393f
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)
}