function add(x) return function test() return x end end local d = add(5 + 7) global c = print(d() + 10)