shithub: mc

ref: 020869f23ed9d0f0ca5b53bdce1f87c05024689f
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)
}