shithub: mc

ref: 686c217308daa55a0fbe9ace3258767b80b6ba5b
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)
}