Commit 6b408678 authored by Stefan Behnel's avatar Stefan Behnel

extended test case

parent 7e656716
......@@ -203,3 +203,25 @@ def args_tuple_keywords(*args, **kwargs):
"""
assert typeof(args) == "tuple object", typeof(args)
assert typeof(kwargs) == "dict object", typeof(kwargs)
@infer_types('safe')
def args_tuple_keywords_reassign_same(*args, **kwargs):
"""
>>> args_tuple_keywords_reassign_same(1,2,3, a=1, b=2)
"""
assert typeof(args) == "tuple object", typeof(args)
assert typeof(kwargs) == "dict object", typeof(kwargs)
args = ()
kwargs = {}
@infer_types('safe')
def args_tuple_keywords_reassign_pyobjects(*args, **kwargs):
"""
>>> args_tuple_keywords_reassign_pyobjects(1,2,3, a=1, b=2)
"""
assert typeof(args) == "Python object", typeof(args)
assert typeof(kwargs) == "Python object", typeof(kwargs)
args = []
kwargs = "test"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment