shithub: mc

ref: 056ef88fc6d281ae626ddf2c598afe2abdb06888
dir: /test/closure.myr/

View raw version
use std

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