1# test passing named arg to closed-over function
2
3def f():
4    x = 1
5    def g(z):
6        print(x, z)
7    return g
8
9f()(z=42)
10