Commit 7f6d96fc authored by Robert Bradshaw's avatar Robert Bradshaw

Better error for foo(*args) when foo a cdef function.

parent 2bd0a604
......@@ -2668,7 +2668,7 @@ class GeneralCallNode(CallNode):
self.type = error_type
return error_type
if hasattr(self.function, 'entry') and not self.function.entry.as_variable:
error(self.pos, "Keyword arguments not allowed in cdef functions.")
error(self.pos, "Keyword and starred arguments not allowed in cdef functions.")
else:
self.function = self.function.coerce_to_pyobject(env)
self.positional_args = \
......
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