summaryrefslogtreecommitdiff
path: root/test/closure.myr
blob: d24cdabf0d530579ec8429989d36187a17d5aef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std

const main = {
	var a, b, c, fn

	a = 111
	b = 555
	c = 333
	fn = {
		var x

		x = 666
		std.put("{}{}{}{}\n", a, b, c, x)
	}
	fn()
}