1.1 --- a/tests/nested_mixed.py Thu Sep 08 21:36:58 2016 +0200
1.2 +++ b/tests/nested_mixed.py Thu Sep 08 21:56:20 2016 +0200
1.3 @@ -1,11 +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 + def g(y, x=x):
1.11 + def h(a, z, x=x, y=y):
1.12 + return x, y, z, a # parameter a overrides global scope
1.13 return h
1.14 return g
1.15
1.16 result = f(1)(2)(5, 3)
1.17 -assert result == (1, 5, 3, 4)
1.18 +assert result == (1, 2, 3, 5)