1 2 3 4 5 6 7 8 9 10 11 12
function fun() let x = 0 let fun = function() x end x = 1 return fun end std.assert(fun()() == 0)