summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/closure-defargs.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/basics/closure-defargs.py b/tests/basics/closure-defargs.py
new file mode 100644
index 000000000..ff8ada041
--- /dev/null
+++ b/tests/basics/closure-defargs.py
@@ -0,0 +1,8 @@
+def f():
+ a = 1
+ def bar(b = 10, c = 20):
+ print(a + b + c)
+ bar()
+
+print(f())
+