summaryrefslogtreecommitdiff
path: root/test/nestfn.myr
blob: c0f34c5018229de45aa28eb0d44cfeb2fca2e827 (plain)
1
2
3
4
5
6
7
8
9
use std
/* checks that nested functions without environment capture work. should
* exit with 42. */
const main = {
	const ret42 = {
		-> 42
	}
	std.exit(ret42())
}