summaryrefslogtreecommitdiff
path: root/tests/basics/fun_callstar.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/fun_callstar.py')
-rw-r--r--tests/basics/fun_callstar.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/fun_callstar.py b/tests/basics/fun_callstar.py
index 2275d3d4f..a27a288a3 100644
--- a/tests/basics/fun_callstar.py
+++ b/tests/basics/fun_callstar.py
@@ -17,6 +17,11 @@ foo(*range(3))
# pos then iterator
foo(1, *range(2, 4))
+# an iterator with many elements
+def foo(*rest):
+ print(rest)
+foo(*range(10))
+
# method calls with *pos
class A: