Skip to content

Commit 7a4722d

Browse files
author
Philip Guo
committed
added another problematic test case
1 parent 4d2411c commit 7a4722d

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# test in Python 3
2+
def f(t):
3+
def g(t):
4+
def h():
5+
nonlocal t
6+
t += 1
7+
return h, lambda: t
8+
h, gt = g(0)
9+
return h, gt, lambda: t
10+
h, gt, ft = f(0)
11+
ft(), gt()
12+
h()
13+
ft(), gt()

0 commit comments

Comments
 (0)