summaryrefslogtreecommitdiff
path: root/test/closure.myr
blob: 6d45bfb5e590c0557815995d1676dc5d9051c858 (plain)
1
2
3
4
5
6
7
8
/* checks that functions with environment capture work. should exit with 42. */
const main = {
	var a = 42
	var f = {b
		-> a + b
	}
	-> f(13)
}