Lichen

Change of tests/nested_mixed.py

2:3dff1f10598f
tests/nested_mixed.py
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tests/nested_mixed.py	Tue Aug 30 18:59:33 2016 +0200
     1.3 @@ -0,0 +1,11 @@
     1.4 +a = 4
     1.5 +
     1.6 +def f(x):
     1.7 +    def g(y):
     1.8 +        def h(y, z):
     1.9 +            return x, y, z, a # parameter y overrides outer scope
    1.10 +        return h
    1.11 +    return g
    1.12 +
    1.13 +result = f(1)(2)(5, 3)
    1.14 +assert result == (1, 5, 3, 4)